obtaining application paths
Mark Schonewille
m.schonewille at economy-x-talk.com
Tue Mar 31 12:36:42 EDT 2009
Hi Sims,
If you know the creator type of the application, you can use the
AppleScript syntax:
set thePath to application file id "RSED" as text
An example, which I used in the days of HyperCard, can be found at <http://runrev.info/ResEdits%20location%20AS.htm
>.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum
Snapper Screen Recorder is now available for Windows! Download it at <http://snapper.economy-x-talk.com
>.
On 31 mrt 2009, at 10:49, Jim Sims wrote:
> On OS X the applescript:
>
> tell application "System Events" to (get path to application "Mail")
>
> will get the path to an application (in this case "Mail.app").
> However, it seems to need to open that app before it can get the path.
>
> Is there an applescript or shell script that will tell me the path
> to an application without opening it first?
>
> I do understand that on can use answer file - but I'd like an
> alternative.
>
> sims
>
> sims at ezpzapps.com
> Skype: sims.jim
> iChat: techietours
> ______________________
> Opportunity by Design
More information about the use-livecode
mailing list