• 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
Re: Choose file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Find in Filemaker
      • From: Xandra Lee <email@hidden>
References: 
 >Choose file (From: Michelle Steiner <email@hidden>)
 >Re: Choose file (From: Christopher Nebel <email@hidden>)
 >Re: Choose file (From: Michelle Steiner <email@hidden>)

  • Prev by Date: file to open whit xcode
  • Next by Date: Re: Choose file
  • Previous by thread: Re: Choose file
  • Next by thread: Find in Filemaker
  • Index(es):
    • Date
    • Thread