path to standalone from within standalone?

Dan Nigrin's icon

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
Windows .exe.

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

Dan
--
Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com
http://www.jackosx.com

AlexHarker's icon

Hi Dan,

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

Regards

Alex

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

gusanomaxlist's icon

Does [path( -> [thispatcher] also work in standalones ?

Ciao

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

Am 17.02.2009 um 00:20 schrieb Alex Harker:
>
>

Hi,

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.

best,

g.

Dan Nigrin's icon

Thanks guys - sendapppath is what I was forgetting!

Dan