thispatcher outputs wrong path when building app

A.M.'s icon

I'm using [thispatcher]to output the path in order to use ut to open some files automatically, however it doesn't work when I build it into an application (the "path" message to "thispatcher" outputs a "/").
Any idea on how to solve this? Tried using absolutepath but doesn't work.

Source Audio's icon

loadbang message

;
max sendapppath xxx


receive xxx will output standalone app path

Works so only in standalone or runtime.
You could also ask if patch is running in Max or as runtime,
than use result 0 or 1 to either ask thispatcher to output path
or the above Standalone path

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

You must first save the patcher for this to work

A.M.'s icon

Amazing!! That works. Thank you so much!
Only issue is now the app shows the Max Console and can't get rid of it..

Source Audio's icon

Are You on Mac or Windows ?

usually loadbanging message :
;
max maxinwmenu 0


would remove it, but on Windows it is a bit more complicated.
It also depends on max version.

Status Window Visible at Startup flag in standalone inspector is supposed to control that,
but on windows one can't realy on that.
Tell me details on Max Version, OS etc
then I could post You some solutions.
--------
I usually delete all interfaces form the standalone, who needs that ?
Only dsp setup is needed, but I prefer to replace it with own one
for several reasons.

A.M.'s icon

I'm on both Mac (High Sierra) and PC (Windows 7). I had the Status Window Visible at Startup disabled in standalone inspector but as you said it didn't work on Windows. The message worked!! Huge thanks.

Source Audio's icon

So You don't have Status Window showing up in Windows Standalone Version ?
I usually had to do trickier things than just that message for it to work.
Which Max version are You using ?

A.M.'s icon

No, now I don't! 8.02 (which has a few other bugs tho)

Source Audio's icon

Ok, thanks.
I don't use max 8 yet.
I mean I do run some tests, but keep working with older versions