can I set up a patch that automatically save a jpg image?

yo's icon

hi, experts
I am setting up a patch to save a jpg image on my desktop from the "jit.qt.grab" function . I am successfully set up a patch to save the image manually on the desktop. Now I like to set up a patch that automatically save the file without clicking any keyboard. However, when the action trigger the function called "write 30. jpeg normal" it will pop out a window to confirm the saving location. so, my question is that is there a way I can use a different function to skip this "manual" step? or there is a code?!

thank you so much for your help!!!

aichen

Derek Franz's icon
Max Patch
Copy patch and select New From Clipboard in Max.

On 9/16/07, aichen wrote:
>
>
> hi, experts
> I am setting up a patch to save a jpg image on my desktop from the "
> jit.qt.grab" function . I am successfully set up a patch to save the image
> manually on the desktop. Now I like to set up a patch that automatically
> save the file without clicking any keyboard. However, when the action
> trigger the function called "write 30. jpeg normal" it will pop out a window
> to confirm the saving location. so, my question is that is there a way I can
> use a different function to skip this "manual" step? or there is a code?!
>
>
> thank you so much for your help!!!
>
> aichen
>
>
>
>

yo's icon

um..what does these numbers mean?!

Rob Ramirez's icon
yo's icon

but it wouldn't allow me to past, also I tried to put it on the Text Edit and save it with .pat file. it is not showing in the Max/MSP as well. am I doing anything wrong?!

yo's icon

hey, guys
thank you so much !!! I just update the latest version of Max/msp and it's working !!!!!!

yeah!! big hugs

aichen

yo's icon

hi Derek
could you give me a guide that how do I use this patch?!
I couldn't understand most of the objects in this sub_patch.
is this the sub_patch for the write message? or it's substution for the entire set up that I had.

thanks a lot!

aichen

Rob Ramirez's icon

try adding this to your patch.
change "image_name" in the sprintf to whatever you want to call the captures.

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

rather...

Max Patch
Copy patch and select New From Clipboard in Max.

yo's icon

success !!!
thank you so much robtherich.
you save my life.

aichen

Andy's icon

Is it possible to do this so it writes over the same file each time? I've tried but it doesn't do anything. Either that or get max to delete all files upon close?

Cheers

Andy

Andy's icon

Ah. No worries. jit.fprint does that nicely anyway.

Cheers anyway.

Joel's icon

Hi Everyone,

here is a patch that automatically saves a JPEG from a jit.matrix

autosave.maxpat
text/plain 14.98 KB