how do you find out the file id of a package?
how do you find out the file id of a package?
- Subject: how do you find out the file id of a package?
- From: Philippe GRUCHET <email@hidden>
- Date: Sun, 12 Jan 2003 19:54:20 +0100
tell application "Finder" to application file id "CHIM" as text
info for result
From: David Cramer <email@hidden>
Thanks, Philippe. It works great!
Now my question is, how do you find out the file id of a package?
That's right, all packages have not a 'file creator' code, such
Sherlock 3 ("????").
Below, a little request to a target app, but just handled like a simple
file: 'choose file', and not 'choose application'.
--=========================================================
choose file --> choose your app
(info for result)'s file creator --> the code is displayed in the SE's
Result window
-- set the clipboard to result --> optional: the code is put (paste)
into the clipboard
--=========================================================
Once you've got all your 'file creator' codes, no need to put this
'choose file' statement in every script.
Just use: application file id "----"
If you need to use more than one in a script, set a list:
set fcCode to {"CHIM", "MSIE", "sfri"}
tell application "Finder" to open fileAlias using application file id
(fcCode's item 1 as string)
Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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.