thispatcher outputs wrong path when building app
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.
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
You must first save the patcher for this to work
Amazing!! That works. Thank you so much!
Only issue is now the app shows the Max Console and can't get rid of it..
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.
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.
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 ?
No, now I don't! 8.02 (which has a few other bugs tho)
Ok, thanks.
I don't use max 8 yet.
I mean I do run some tests, but keep working with older versions