• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: App Names?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: App Names?
      • From: Shane Stanley <email@hidden>
References: 
 >App Names? (From: Sal <email@hidden>)

  • Prev by Date: Re: App Names?
  • Next by Date: Re: List processes problem
  • Previous by thread: App Names?
  • Next by thread: Re: App Names?
  • Index(es):
    • Date
    • Thread