The location of LiveCode.app

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

The location of LiveCode.app

Post by andrewferguson » Thu Sep 12, 2013 1:06 pm

Hi,
I am on a Mac and I am trying to find out how to find out the location of LiveCode.app.
The LiveCode application will change location frequently so "/Applications/LiveCode.app" will not do.
Any ideas?
Thanks,
Andrew

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: The location of LiveCode.app

Post by gpb01 » Thu Sep 12, 2013 5:09 pm

Hi Andrew,
this is very strange ... mine is still under /Applications but, obviously, under different names, following the release version (LiveCode 5.5.0.app, LiveCode 6.1.0.app, LiveCode 6.1.1.app ... and so on) :)

Guglielmo

Klaus
Posts: 14212
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The location of LiveCode.app

Post by Klaus » Thu Sep 12, 2013 5:22 pm

HI Andrew,

you cannot get this directly but try this:

Code: Select all

function where_is_the_app
   put revEnvironmentToolsPath() into tPath
   set itemdel to "/"
   delete item -2 to -1 of tPath
   return tPath
end where_is_the_app
Tested and works :D

Hint: This will only work in the IDE!


Best

Klaus

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

Re: The location of LiveCode.app

Post by andrewferguson » Fri Sep 13, 2013 12:52 pm

Hi Klaus,
Thanks! That works well,
Andrew

Post Reply