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 »

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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The location of LiveCode.app

Post by Klaus »

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 »

Hi Klaus,
Thanks! That works well,
Andrew
Post Reply