Re: Excluding aliases from a file search
Re: Excluding aliases from a file search
- Subject: Re: Excluding aliases from a file search
- From: kai <email@hidden>
- Date: Tue, 18 Jul 2006 09:45:25 +0100
On 18 Jul 2006, at 08:15, Brett Conlon wrote:
Now, when the script looks through their images folder with this line:
set ImgFiles to (every file of ImgsFldr)
to flag files that do not match {"EPSF", "TIFF", "EPSP", "JPEG"} it
seems to be flagging an alias that some designers have in their
images folder (to their layered PSD folder).
Is the script flagging the alias or is it digging deeper into the
actual folder of the alias?
It should be just the alias that's being flagged, Coj. You could
avoid the inclusion of aliases (which are of class 'alias file') by
tightening the class specification from 'files' to 'document files'.
I also realised that some designers (on very large jobs) have sub-
folders inside their images folder.
Could someone help me with the syntax that sets ImgFiles to ever
file of the entire contents of ImgsFldr but ignores any aliases?
Sure thing. Try something like:
----------------
tell application "Finder" to set ImgFiles to (document files of
entire contents of ImgsFldr)
----------------
---
kai
_______________________________________________
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