• 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: Excluding aliases from a file search
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Excluding aliases from a file search
      • From: Yvan KOENIG <email@hidden>
References: 
 >Excluding aliases from a file search (From: Brett Conlon <email@hidden>)

  • Prev by Date: Excluding aliases from a file search
  • Next by Date: Re: Excluding aliases from a file search
  • Previous by thread: Excluding aliases from a file search
  • Next by thread: Re: Excluding aliases from a file search
  • Index(es):
    • Date
    • Thread