Re: Choose File Limited by File Extension OR Type ???
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