Re: application file id?
Re: application file id?
- Subject: Re: application file id?
- From: John Delacour <email@hidden>
- Date: Mon, 5 May 2003 00:31:27 +0100
- Mac-eudora-version: 6.0a16
At 2:31 pm -0700 4/5/03, Jeff Ganyard wrote:
so what's the story on OS X as far as application file id? It's in
the legacy suite of the Finder, does that mean it may be phased out
over time?
What is the best way to launch an App these days? I'd like to avoid
international (i.e. app name) issues and limit the classic "Where is
app..?" dialogs.
And finally if application file id is the right way to do things
going forward, how do you address Calculator and Sherlock (and
probably others) that have a creator type of "????"
In the case of Safari or TextEdit
tell app "Safari" to activate
do shell script "open -a safari"
tell app "Finder" to open application file id "sfri"
Will all work, and provided the name doesn't change then that's
plenty, but if you want to find where something is with
tell app "Finder" to "" & application file id "sfri"
--> "dx:Applications:Safari folder:Safari.app"
then it is indeed a pain and I doubt if there's a way round it --
after all look how long it takes for Script Editor to get a list of
applications, as though the list were not stored anywhere. Apps
OUGHT to have a creator type.
If you open the Calculator.app package, drop info.plist onto BBEdit
or whatever, and change the signature from ???? to
<key>CFBundleSignature</key>
<string>qALq</string>
and then restart, you will then be able to
tell application "Finder" to "" & application file id "qALq"
--> "dx:Applications:Calculator.app"
so it's pure laziness on the part of the new kids not giving apps
signatures, and the fact that Script Editor.app, TextEdit and Safari,
plus a few more no doubt, have a creator type means that there are a
few kids who know the make a bit better than the others.
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.