Launch Outside application on Mac OS

Aug 21, 2006 at 7:24am

Launch Outside application on Mac OS

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

#27226
Aug 21, 2006 at 7:41am

#82148
Aug 21, 2006 at 9:44am

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
>

#82149
Aug 21, 2006 at 12:08pm

#82150
Aug 21, 2006 at 10:18pm

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.

#82151
Aug 26, 2006 at 10:56am

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

#82152
Aug 26, 2006 at 10:47pm

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:

#82153
Aug 27, 2006 at 1:08pm

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

#82154

You must be logged in to reply to this topic.