Problems with loadbang and sendapppath

qwentl's icon

I'm working on an application that allows users to download videos from the internet into the same directory as the application. Right now it is set up so that there is a loadbang triggering a "sendapppath" to a message. However, when I build the application and open it, the message automatically has the path of the patch instead of the path of the built application, so it doesn't work. Is there an easy way to fix this?

Nikolas K's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this is the way to find your path in a standalone

Nikolas

Nikolas K's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Sorry, actually with this, you do not have to change the process of path finding, from max patch to standalone.
Hope it helps

Nikolas

qwentl's icon

Thank you! That appears to work most of the time. I think my actual problem lies in a different part of the patch/order of operations. Thank you for your help!

Nikolas K's icon

without a sample of the patch it is difficult to think of what might be the problem.
Maybe you store the path somewhere, if it is 'set' to a message box, it is saved, so maybe it is triggered there.., if you save it when patching and is triggered after you make it a standalone...
A piece of your patch would really help solving this!