Forums > MaxMSP

Launch Outside application on Mac OS

August 21, 2006 | 7:24 am

Is there a built in or 3rd party object available that will allow you
to launch an application, or open a document just as if you had
double-clicked it in the Finder? Possibly something that would
trigger AppleScript?

Thanks,
Michael


August 21, 2006 | 7:41 am


August 21, 2006 | 9:44 am

i guess you can do that with the shell object, right?
p

On 8/21/06, Michael Williams wrote:
> Is there a built in or 3rd party object available that will allow you
> to launch an application, or open a document just as if you had
> double-clicked it in the Finder? Possibly something that would
> trigger AppleScript?
>
> Thanks,
> Michael
>


August 21, 2006 | 12:08 pm


August 21, 2006 | 10:18 pm

Put this in a message box:

; max launchbrowser file:///path/to/appname.app

Replace the path with the correct path to the app or file, including its extension (which may be hidden for apps). Use quotes if it contains spaces.

Click it.


August 26, 2006 | 10:56 am

Michael Williams wrote:
> Is there a built in or 3rd party object available that will allow you
> to launch an application, or open a document just as if you had
> double-clicked it in the Finder? Possibly something that would trigger
> AppleScript?

its built in, but not so easy to find. Its a message to Max called
"launchbrowser" but it will launch anything…
The message to launch the PDF reader and open the Manual for example
looks on my system like that:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 222 80 100 196617 example for a PC;
#P window linecount 5;
#P message 202 105 154 196617 ; max launchbrowser "c:/Program
Files/Cycling ’74/MaxMSP 4.6/Documentation/MSP46ReferenceManual.pdf";
#P message 42 105 156 196617 ; max launchbrowser
"file:///Applications/MaxMSP 4.6/Documentation/Max46ReferenceManual.pdf";
#P window linecount 1;
#P comment 47 80 100 196617 example for a Mac;
#P comment 92 50 202 196617 just bang/click the message box to launch;
#P window clipboard copycount 5;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


August 26, 2006 | 10:47 pm

Thanks, Stefan. This beats the osax solution I was using.

Best,

Zip Boterbloem
Media Mechanics
Zwaluwstraat 54
2025 VR Haarlem
The Netherlands
+31627014758
zip@knoware.nl

Op 26-aug-2006, om 12:56 heeft Stefan Tiedje het volgende geschreven:

> Michael Williams wrote:
>> Is there a built in or 3rd party object available that will allow
>> you to launch an application, or open a document just as if you
>> had double-clicked it in the Finder? Possibly something that
>> would trigger AppleScript?
>
> its built in, but not so easy to find. Its a message to Max called
> "launchbrowser" but it will launch anything…
> The message to launch the PDF reader and open the Manual for example
> looks on my system like that:


August 27, 2006 | 1:08 pm

Michael Williams wrote:

> Is there a built in or 3rd party object available that will allow you to
> launch an application, or open a document just as if you had
> double-clicked it in the Finder? Possibly something that would trigger
> AppleScript?

Since I just announced the new version:

You could use the system() command in an [rtcmix~] script for this also,
but it’s a bit of overkill (plus I think better solutions such as the
launchbrowser thing or shell external exist for this).

brad

http://music.columbia.edu/~brad


Viewing 8 posts - 1 through 8 (of 8 total)