Exportimage choice of folder?

I’m doing a patch where I want jit.matrix to constantly export images, and when it hits a certain amount of images it restarts the process, thus overwriting the old files.

The problem I have is that I can’t specify a folder where the images created with exportimage will be located. Now, they are placed in the Max6 folder. It would work just fine if I could only get Max to save to the folder where the patcher is located.

you can specify the directory to save the image at the exportimage message, like so "exportimage d:\someFolder\….\image jpeg". Between the directory and the file type, is a "space"! the double "" is required instead of single.Also be careful so the directory path doesn’t have spaces, or if it has, place it between double quotes, you can use the [sprintf] object to create the path, with the "symout" argument (or is it a flag!?….)