• 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: Use the find command in Apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use the find command in Apple script


  • Subject: Re: Use the find command in Apple script
  • From: Emmanuel <email@hidden>
  • Date: Fri, 9 Feb 2001 09:36:21 +0100

At 0:21 +0100 9/02/01, Braulio Gonzales wrote:
>How can the Find command be implemented through AppleScript to find an
>application so that it can be executed.

In the MacOS, applications have "signatures", i.e., 4-characters codes.

For instance, SimpleText is "ttxt".

The signature of a given application is given as their creator codes to the
files it creates.

Once you've got an app's signature, you can retrieve the corresponding
app(s) by various ways.

------------------------
tell application "Finder" to get application file id "ttxt"
------------------------

will return one of the apps (I suppose, the latest installed) which have
this signature.

------------------------
applicationpath "ttxt"
------------------------

(a command of the free Satimage Scripting Addition (that we make))
will return all of them (optional parameters of the command allow smarter
searches).

HTH
Emmanuel


References: 
 >Use the find command in Apple script (From: "Braulio Gonzales" <email@hidden>)

  • Prev by Date: Re: Error 1728
  • Next by Date: AppleScript crashes constantly
  • Previous by thread: Use the find command in Apple script
  • Next by thread: Mac OS 9: URL Access 2.1 and Third-Party Scripting Additions Issue
  • Index(es):
    • Date
    • Thread