Page 1 of 1

Launch statement, correct syntax

Posted: Sun May 14, 2006 4:49 pm
by eddu
LS;

I try to start an application (iBlog in this case) from within an R2 Studio application. The example in the documentation state a correct example for the document path. But, in my view more important, not for the application path. And I don't seem to get it right.

If I want to start iBlog, what is the correct syntax given the path below.

Launch /macintosh HD/Programma's/iblog.app

If I put this in a script for a button I get an error message.

I would appreciate some help here.

Thanx and regards;
Ed

Posted: Mon May 15, 2006 3:59 am
by Janschenkel
Hi Ed,

The first thing to do is make sure and put quotes around the application path.

Code: Select all

launch "/macintosh HD/Programma's/iblog.app"
You should check the path of the application as well, since the name of the folder in the finder may be different from the actual name of the folder.

Code: Select all

answer file "Select the application to launch"
put it -- should display something like "/Applications/iblog.app"
launch it
Hope this helped,

Jan Schenkel.

Posted: Mon May 15, 2006 7:38 am
by Mark
Hi Eddu,

Although Jan has posted good advice that may solve the problem, you might want to post the exact text of the error message.

If you are on Mac OS X, a path usually starts at the user's folder. You might want to add "/Volumes" to tell Mac OS X that the path starts at the top of the file hierarchy.

Best,

Mark

Start an appplication

Posted: Mon May 15, 2006 3:25 pm
by eddu
The info from Jan Schenkel did the trick!

Thanx!
Ed

Re: Launch statement, correct syntax

Posted: Sat Apr 11, 2015 11:58 am
by Mark
Hi,

What is your script?

Kind regards,

Mark