Re: Choose file
Re: Choose file
- Subject: Re: Choose file
- From: Christopher Nebel <email@hidden>
- Date: Tue, 3 May 2005 13:54:54 -0700
On May 3, 2005, at 12:57 PM, Michelle Steiner wrote:
On May 3, 2005, at 12:46 PM, Christopher Nebel wrote:
set theImage to choose file of type {"png"} does not work.
Anyone got any suggestions?
Yes -- use the right identifier. To get the type identifier for
any particular file, use "info for" and look at the "type
identifier" field. In your case, you want "public.png".
Where can I find type identifiers documented? Or do I have to
execute an "info for" each time I need to script the type
identifier? Why couldn't the type identifier for a png file be
simply "png"?
Because that would have been inconsistent with the general format of
Universal Type Identifiers. This is not simply an AppleScript
concept you're dealing with here. Read about them at <http://
developer.apple.com/documentation/Carbon/Conceptual/
understanding_utis/understand_utis_intro/chapter_1_section_1.html>,
or skip straight to the publicly defined list at <http://
developer.apple.com/documentation/Carbon/Conceptual/
understanding_utis/utilist/chapter_4_section_1.html>
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden