Re: Excluding aliases from a file search
Re: Excluding aliases from a file search
- Subject: Re: Excluding aliases from a file search
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 18 Jul 2006 11:30:37 +0200
Le 18 juil. 2006 à 10:45, kai a écrit : …
Sure thing. Try something like:
----------------
tell application "Finder" to set ImgFiles to (document files of entire contents of ImgsFldr)
----------------
Hello
As some documents may be of "illegal" type, this extended script may do the trick.
--[SCRIPT] tell application "Finder" set ImgFiles to (document files of entire contents of ImgsFldr) set Img_Files to {} repeat with f in ImgFiles set fa to f as alias if (name extension of fa is in {"eps", "tif", "jpg"}) or file type of fa is in {"EPSF", "TIFF", "EPSP", "JPEG"} then copy fa to end of Img_Files (* a single line *) end repeat end tell --[/SCRIPT]
Yvan KOENIG
Hi, the char display oddity strikes again (always after running any script from the Script Editor)
|
Attachment:
Image 1.pdf
Description: Adobe PDF document
_______________________________________________
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