Re: Use the find command in Apple script
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