Forums > MaxMSP

How to delete a file?

January 21, 2006 | 3:26 am

Does anyone know how one can delete a file using Max? My application creates temp files and it would be nice if I could delete them.

I need this functionality for both Windows and Mac.

Thanks,

Syndey B.


January 21, 2006 | 4:33 am

you can us an mxj and the JAVA File class which has a method delete().

wes


January 21, 2006 | 9:19 am

on osx, you can use the shell object and the rm unix command.
on windows, maybe f.e.’s winhack objects can help you out, though i have no experience with winmax.



f.e
January 21, 2006 | 10:22 am

Yep. WinHack contains DOSHack class that does this very quickly.

best

f.e


January 22, 2006 | 1:00 am

It turns out that Bill Orcutt, the creator of the "shell" object also made a "rm" object (remove) with versions for OS X as well as Windows.

A list of Bill’s objects can be found here: http://www.maxobjects.com/?v=authors&id_auteur=44&re quested=shell&operateur=AND&id_plateforme=0

And they can be downloaded from here:

http://www.publicbeta.cx/max/

Note: maxobjects.com is not up-to-date. Many of the object also have a Windows version.

Syndey B.


January 22, 2006 | 6:43 pm


Viewing 6 posts - 1 through 6 (of 6 total)