Re: App Names?
Re: App Names?
- Subject: Re: App Names?
- From: Jolly Roger <email@hidden>
- Date: Wed, 03 Jan 2001 14:52:02 -0600
- Replyto: email@hidden
on 1/3/2001 12:40 PM, Sal wrote:
>
Beginner's question number 3: If I want to start an application, how do I
>
know what app name to use? Is it the name of the executable code file?
It's better to use the creator code for the application because users can
change the file name of the application.
To open the FileMaker Pro 3 application specifying the creator code, you
would write:
tell application "Finder" to open application file id "FMP3"
If you want to acquire the FileMaker application full path, you might do
this:
tell application "Finder" to set fmpApp to (application file id "FMP3") as
text
To get the name from the full path, either use the "info for" command:
set fmpName to name of (info for file fmpApp)
Or better yet use AppleScript's text item delimiters to quickly parse the
name from the full path:
set saveDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
set fmpName to text item -1 of fmpPath
set AppleScript's text item delimiters to saveDelims
HTH
JR
References: | |
| >App Names? (From: Sal <email@hidden>) |