path to standalone from within standalone?
I want to be able to launch a pdf that I will bundle with my Max
standalone application. I will include the pdf within the Mac
application bundle, or within the "support" folder next to the
I wanted to use the following message to max:
; max launchbrowser file:///path/to/my/file/foo.pdf
This works fine when I can reliably get the path to the file. But
how do I generate the correct path when considering my standalone?
Is there a way to know the path to my standalone itself?
I have a feeling I’m missing something very obvious…
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Last time I did this in max 4.6 the below worked for me. There may be other ways, or things may have changed. The sprintf added the name of my app and the folder I wanted. However, this won’t work if the name of the apps been changed….
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 75 243 241 196617 sprintf %sGEViewGetter.app/Contents/Resources/;
#P newex 75 218 32 196617 r app;
#P window linecount 2;
#P message 132 198 105 196617 ; max sendapppath app;
#P connect 1 0 2 0;
#P window clipboard copycount 3;
Does [path( -> [thispatcher] also work in standalones ?
Am 17.02.2009 um 00:20 schrieb Alex Harker:
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 75 243 241 196617 sprintf %sGEViewGetter.app/Contents/
> #P newex 75 218 32 196617 r app;
> #P window linecount 2;
> #P message 132 198 105 196617 ; max sendapppath app;
> #P connect 1 0 2 0;
> #P window clipboard copycount 3;
I don’t know what has changed in 5 either but in 4 you can use
sendapppath, but use sprintf symout, or your app won’t work with
spaces in the path name (like sadly many maxbuild apps do). You might
run into problems creating a "send max" object for you dynamic path,
but I think forward works.
Thanks guys – sendapppath is what I was forgetting!