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
Launch statement, correct syntax
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Hi Ed,
The first thing to do is make sure and put quotes around the application path.
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.
Hope this helped,
Jan Schenkel.
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"
Code: Select all
answer file "Select the application to launch"
put it -- should display something like "/Applications/iblog.app"
launch it
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
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
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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Start an appplication
The info from Jan Schenkel did the trick!
Thanx!
Ed
Thanx!
Ed
Re: Launch statement, correct syntax
Hi,
What is your script?
Kind regards,
Mark
What is your script?
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode