'Launch' command failing in standalone build

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pthirkell
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 93
Joined: Tue Nov 17, 2009 6:47 pm

'Launch' command failing in standalone build

Post by pthirkell » Fri Jan 04, 2013 2:56 am

The Launch command (e.g: Launch "TextEdit.app" ) is working fine in IDE but no response in standalone build for Mac -(Intel or universal).

Using LC 5.5.3 on Mac OS X 10.8.2

Any others with similar issue?

Thanks.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: 'Launch' command failing in standalone build

Post by Simon » Fri Jan 04, 2013 3:47 am

I'm getting the same result.
But:

Code: Select all

set the defaultFolder to "/Applications"
launch "TextEdit.app"
works.


Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: 'Launch' command failing in standalone build

Post by sturgis » Fri Jan 04, 2013 4:48 am

Yep, looks like pathing differs between standalone and within the ide. Setting the defaultfolder solves this, or you can specify the full path.

launch "/Applications/TextEdit.app"

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: 'Launch' command failing in standalone build

Post by andrewferguson » Tue May 07, 2013 7:06 pm

Hi,
This is probably because when LiveCode starts up the defaultFolder is set to the location of LiveCode.app, which is probably /Applications. I think that if you move your standalone application into /Applications then you should find that

Code: Select all

launch "TextEdit.app"
will work.
Alternatively you can set the defaultFolder on openStack.

Code: Select all

set the defaultFolder to "/Applications"
Andrew

Post Reply