• 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
how do you find out the file id of a package?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Opening a local HTML file in the default browser
  • Next by Date: Script Editor 2 beta feedback
  • Previous by thread: Corrected Safari Date Module Re: Whoops! Correction -- Re: Creating Text Notes From Safari Script
  • Next by thread: Script Editor 2 beta feedback
  • Index(es):
    • Date
    • Thread