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…
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….
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.