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: Rick Gordon <email@hidden>
- Date: Thu, 24 Apr 2008 11:48:12 -0700
I'm now settling on a variant command contained in Satimage:
set vFileList to navchoose file of extension vExtensionList with prompt string vPrompt with multiple files
This won't handle properly typed JPEGs and TIFFs without extensions, but that limitation is probably not going to be a real problem in my workflow. It's the best I've come up with so far, anyway.
I tried to following:
set vFileList to navchoose file of extension vExtensionList of type vTypeList with prompt string vPrompt with multiple files
... but that becomes over-selective by requiring both conditions to be true.
Rick Gordon
------------------
On 4/24/08 at 4:01 AM -0700, Rick Gordon wrote in a message entitled
"Re: Choose File Limited by File Extension OR Type ???":
>Thanks. That partially works, but what is not handled (and is also not handled when using the old-style file types) is the enabling of aliases to files of the appropriate type identifier in the Choose File dialog.
>
>
>set vFileList to choose file of type {"public.jpeg", "public.tiff"} with prompt vPrompt with multiple selections allowed without invisibles
>
>... works on files having either a file type of "JPEG" or "TIFF" or extension of in the list {"jpg", "jpeg", "tif", "tiff"}, but won't recognize aliases or symlinks to those files.
>
>
>What I'd like to do is to do the above, plus recognize aliases or symlinks having either a file type of "JPEG" or "TIFF" or extension of in the list {"jpg", "jpeg", "tif", "tiff"}, yet leave other files disabled. Right now, my workaround is not to filter by type at the Choose File stage, and filter out selected files that don't have the right characteristics before operating on them.
>
>Rick Gordon
--
___________________________________________________
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