• 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: 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

  • Follow-Ups:
    • Re: Excluding aliases from a file search
      • From: kai <email@hidden>
References: 
 >Excluding aliases from a file search (From: Brett Conlon <email@hidden>)
 >Re: Excluding aliases from a file search (From: kai <email@hidden>)

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