Launch statement, correct syntax

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
eddu
Posts: 8
Joined: Fri May 12, 2006 7:27 pm

Launch statement, correct syntax

Post by eddu » Sun May 14, 2006 4:49 pm

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

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon May 15, 2006 3:59 am

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon May 15, 2006 7:38 am

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

eddu
Posts: 8
Joined: Fri May 12, 2006 7:27 pm

Start an appplication

Post by eddu » Mon May 15, 2006 3:25 pm

The info from Jan Schenkel did the trick!

Thanx!
Ed

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Launch statement, correct syntax

Post by Mark » Sat Apr 11, 2015 11:58 am

Hi,

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

Post Reply