Path to Application AppleScript
sarahr at genesearch.com.au
Wed Nov 12 16:52:04 CST 2003
This is going to give horrible line wrap problems :-) but it works (Mac
Set the creator ID in the second line (you could have Revolution insert
a variable in there). Then there is a blank line, a comment line to
show the format of the result, then the line that actually does the
work, starting with "set theApp" and ending with the second "as
string)". That is all on one line.
Then there is another blank line before the "return" and the "end tell"
Hope this helps,
tell application "Finder"
set theCreator to "MSIE"
-- this returns "Sarah HD:Applications:Internet Explorer.app"
set theApp to (container of application file id theCreator as string)
& (name of application file id theCreator as string)
On 13 Nov 2003, at 8:14 am, RGould8 at aol.com wrote:
> Does anyone know if there's a way via Applescript to find the path to
> application in Mac OS X? Something like "find app with creatorID
> "MSIE" or
> something like that? What I'm trying to avoid is having the user try
> to find out
> where their apps are located. I'd like Revolution to figure that out
> for them.
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode