How can I compile a MAX app that can locate a folder on another computer?

Feb 25, 2013 at 10:04pm

How can I compile a MAX app that can locate a folder on another computer?

I’ve designed this photo booth and it works great on my computer. The problem is that when I compile it to a stand alone, it has no idea where the photos are supposed to be saved and where the photos that already exist can be opened. I’ve tried this a few ways, but can’t get it to work.
Ideally I would have the app in the same folder as the folder containing the images, and I could just access them with some sort of filepath + ‘/images’ situation. Here is the way I have it now (works for me, not others)

– Pasted Max Patch, click to expand. –

I haven’t been able to spend time debugging on another machine yet, but it seems that if I could just add the folder to MAX’s included list, it would work. But how can I do that on a computer w/o MAX installed?

Is there any object that is good for this?

#66733
Feb 26, 2013 at 1:27am

;max message to the rescue!

no need to include the folder to the list, this will give you the app’s path.

for standalones only. for patches, it’s “path” message to [thispatcher].

– Pasted Max Patch, click to expand. –
#240154

You must be logged in to reply to this topic.