Automatically emptied tmp folder…

Oct 2, 2007 at 11:20am

Automatically emptied tmp folder…

Is there a place in OS X/Windows to store temporarily files, which would
be erased automatically when I close max? Just curious. I know the tmp
folder in OS X, but that seems only be emptied on restart of the
computer, which is a rare occasion on an OS X machine…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#33928
Oct 2, 2007 at 11:36am

Seconded, I’d love to have that feature too..

Mattijs

Quote: Stefan Tiedje wrote on Tue, 02 October 2007 13:20
—————————————————-
> Is there a place in OS X/Windows to store temporarily files, which would
> be erased automatically when I close max? Just curious. I know the tmp
> folder in OS X, but that seems only be emptied on restart of the
> computer, which is a rare occasion on an OS X machine…
>
> Stefan
>
> —
> Stefan Tiedje————x——-
> –_____———–|————–
> –(_|_ —-|—–|—–()——-
> — _|_)—-|—–()————–
> ———-()——–www.ccmix.com
>
>
—————————————————-

#113671
Oct 2, 2007 at 12:51pm

It’s not automatic, but I’ve put together an mxj object that deletes all
files in a specified directory. Might be of some use…

max v2;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 343 250 101 9109513 mxj quickie deletefiles;
#P message 174 141 125 9109513 deletefiles c:/somedirectory;
#P newex 174 163 69 9109513 mxj deletefiles;
#P connect 1 0 0 0;
#P pop;

be careful! ;-)

Simon

—–Original Message—–
From: maxmsp-bounces@cycling74.com [mailto:maxmsp-bounces@cycling74.com] On
Behalf Of Mattijs Kneppers
Sent: 02 October 2007 12:36
Subject: [maxmsp] Re: Automatically emptied tmp folder…

Seconded, I’d love to have that feature too..

Mattijs

Quote: Stefan Tiedje wrote on Tue, 02 October 2007 13:20
—————————————————-
> Is there a place in OS X/Windows to store temporarily files, which would
> be erased automatically when I close max? Just curious. I know the tmp
> folder in OS X, but that seems only be emptied on restart of the
> computer, which is a rare occasion on an OS X machine…
>
> Stefan
>
> —
> Stefan Tiedje————x——-
> –_____———–|————–
> –(_|_ —-|—–|—–()——-
> — _|_)—-|—–()————–
> ———-()——–www.ccmix.com
>
>
—————————————————-


SmadSteck – http://www.smadsteck.nl
Hard- and software for interactive audiovisual sampling

#113672
Oct 2, 2007 at 12:57pm

sorry last email was from outlook, didn’t seem to attach any files. try this instead…

#113673
Oct 2, 2007 at 2:30pm

Hey, thanks!

Mattijs

Quote: simon adcock wrote on Tue, 02 October 2007 14:51
—————————————————-
> It’s not automatic, but I’ve put together an mxj object that deletes all
> files in a specified directory. Might be of some use…
>
> max v2;
> #N vpatcher 15 55 615 455;
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P newex 343 250 101 9109513 mxj quickie deletefiles;
> #P message 174 141 125 9109513 deletefiles c:/somedirectory;
> #P newex 174 163 69 9109513 mxj deletefiles;
> #P connect 1 0 0 0;
> #P pop;
>
> be careful! ;-)
>
> Simon
>
> —–Original Message—–
> From: maxmsp-bounces@cycling74.com [mailto:maxmsp-bounces@cycling74.com] On
> Behalf Of Mattijs Kneppers
> Sent: 02 October 2007 12:36
> Subject: [maxmsp] Re: Automatically emptied tmp folder…
>
>
> Seconded, I’d love to have that feature too..
>
> Mattijs
>
> Quote: Stefan Tiedje wrote on Tue, 02 October 2007 13:20
> —————————————————-
> > Is there a place in OS X/Windows to store temporarily files, which would
> > be erased automatically when I close max? Just curious. I know the tmp
> > folder in OS X, but that seems only be emptied on restart of the
> > computer, which is a rare occasion on an OS X machine…
> >
> > Stefan
> >
> > —
> > Stefan Tiedje————x——-
> > –_____———–|————–
> > –(_|_ —-|—–|—–()——-
> > — _|_)—-|—–()————–
> > ———-()——–www.ccmix.com
> >
> >
> —————————————————-
>
>
> –
> SmadSteck – http://www.smadsteck.nl
> Hard- and software for interactive audiovisual sampling
>
>
>
>
—————————————————-

#113674
Oct 2, 2007 at 3:03pm

i dont know for windows but for OSX , you can do it with [shell].
this erases a given folder :

max v2;
#N vpatcher 30 89 1019 807;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 435 90 266 196617 rm -r /Users/myUserName/Documents/myFolder 2>&1;
#P newex 435 157 32 196617 print;
#P newex 435 120 31 196617 shell;
#P window linecount 2;
#P comment 556 126 100 196617 erases folder “myFolder”;
#P comment 558 159 100 196617 2>&1 shows errors in [print];
#P connect 4 0 2 0;
#P connect 2 0 3 0;
#P pop;

additionnally this should work :
“rm -r /tmp/myfile”

no time for trying myself, i d be curious as well if you find more about it
best

k

Quote: Stefan Tiedje wrote on Tue, 02 October 2007 13:20
—————————————————-
> Is there a place in OS X/Windows to store temporarily files, which would
> be erased automatically when I close max? Just curious. I know the tmp
> folder in OS X, but that seems only be emptied on restart of the
> computer, which is a rare occasion on an OS X machine…
>
> Stefan
>
> —
> Stefan Tiedje————x——-
> –_____———–|————–
> –(_|_ —-|—–|—–()——-
> — _|_)—-|—–()————–
> ———-()——–www.ccmix.com
>
>
—————————————————-

#113675
Oct 10, 2007 at 6:32am

simon adcock schrieb:
> sorry last email was from outlook, didn’t seem to attach any files.
> try this instead…

It did here by the way…

Now I need to know how the differences between Java file paths and Max
file paths.
I created a tmp folder within the Max folder, placed some files, sent
deletefile ./tmp and it deleted the tmp directory of my home directory
instead ;-)
An absolute path to that tmp directory created the following error message:

error: java.lang.NullPointerException
error: at deletefiles.deletefiles(deletefiles.java:28)

#113676

You must be logged in to reply to this topic.