• 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 Limited by File Extension OR Type ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Choose File Limited by File Extension OR Type ???


  • Subject: Re: Choose File Limited by File Extension OR Type ???
  • From: Matthew Smith <email@hidden>
  • Date: Thu, 24 Apr 2008 18:40:44 +1000
  • Thread-topic: Choose File Limited by File Extension OR Type ???

Title: Re: Choose File Limited by File Extension OR Type ???
Try using Uniform Type Identifier:

set vFileList to choose file of type "public.image" with prompt vPrompt with multiple selections allowed without invisibles

See:
<http://developer.apple.com/documentation/Carbon/Conceptual/understanding_utis/understand_utis_intro/chapter_1_section_1.html>

--
Matthew Smith



From: Rick Gordon <email@hidden>
Date: Thu, 24 Apr 2008 01:25:28 -0700
To: <email@hidden>
Subject: Choose File Limited by File Extension OR Type ???

Since there is no reliable correlation between image files with a given file extension (e.g., .jpg, .tif, .jpeg, .tiff) and the existence of a file type (e.g.,
{"JPEG", "TIFF"}), is there any way to use Choose File or a reasonable facsimile to accomplish something like the line below, where possibly JPEG or TIFF files may exist but have no Finder type?

set vFileList to choose file of type {"JPEG", "TIFF"} with prompt vPrompt with multiple selections allowed

--
 
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW:   http://www.shelterpub.com


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Choose File Limited by File Extension OR Type ???
      • From: Rick Gordon <email@hidden>
References: 
 >Choose File Limited by File Extension OR Type ??? (From: Rick Gordon <email@hidden>)

  • Prev by Date: Choose File Limited by File Extension OR Type ???
  • Next by Date: Re: Choose File Limited by File Extension OR Type ???
  • Previous by thread: Choose File Limited by File Extension OR Type ???
  • Next by thread: Re: Choose File Limited by File Extension OR Type ???
  • Index(es):
    • Date
    • Thread