Skip navigation

Automator to select a specified list of files in a folder

145 Views 1 Reply Latest reply: Nov 11, 2012 9:34 AM by Jacques Rioux RSS
scrabble755 Calculating status...
Currently Being Moderated
Nov 9, 2012 12:17 PM

I have a folder of images from which i'd like to select only a portion of them.  The ones i want are in a txt file as a list.


Can anyone help me figure out how to do this? 


Once they are selected i'll manually copy or move them as needed.


my folder has










I want to select





MacBook Pro, Mac OS X (10.7.4)
  • Jacques Rioux Level 4 Level 4 (1,925 points)



    You can use this AppleScript :


    read (choose file with prompt "Select the TEXT file wich contains names") as «class utf8»
    set tNames to paragraphs of the result
    tell application "Finder" to tell target of front Finder window
          select (files whose name is in tNames)
    end tell


    I presume that the names in the text file contain the name extension

    It works if the encoding of the plain text file is  "UTF8", if the encoding is "MacRoman" removes  as «class utf8» in the script.

    The source folder is the front Finder window.


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.