Filter image files in finder against txt/xls file

I'm looking for a solution to the following scenario:
I have a folder that contains over 15,000 images (jpgs).
I receive a request from a customer for 200 of those images. (This list exists in txt/xls format only.)
Is there a way to filter the images and extract (in a new folder) only the 200 out of 15,000 image files that my customer needs without manually searching for them one at a time?
The list of items requested will change with every customer, so I'll need it to be flexible whenever I receive a new list of items requested. I'm not sure if this is something that can be done with Automator or AppleScript.
Any suggestions would be greatly appreciated!
Thanks!!

well, ok, here's a basic script that you'll need to adjust to your needs. Note that it expects a text file with one file name per line.
set imagePolderPath to "~/Main Image Folder"
set destinationFolderPath to "~/Destination Folder"
-- choose the text file with the list of names
set listFile to POSIX path of (choose file)
-- the following assumes the list file is a text file with one image name per line
set dataList to paragraphs of (read listFile as «class utf8»)
tell application "System Events"
          repeat with thisFileName in dataList
  -- I've used 'begins with' since I don't know whether you'll get these file names with or without extensions. This could in aberrant cases result in unwanted files being included.
  move (files of folder imagePolderPath whose name begins with thisFileName) to destinationFolderPath
          end repeat
end tell
the as «class utf8» bit is there in case you have non-English file names (applescript will misread uft8 characters).
Note that if your only goal is to create a zip file, that can be done straight from the script without moving files.

Similar Messages

  • How to find desktop background image file

    I am preparing an old PowerBook G4 laptop to be sold. I had previously lent it to a friend and I am selling it to another friend. The friend to whom I lent it asked me for the desktop image file so he can use it as his desktop on the Mac he owns.
    I shot that photo years ago and I can't find the original .jpg for it, so I am hoping that I can find the desktop version of it before I finish preparing my PowerBook for sale. I have searched everywhere, but that image file does not show up on the PowerBook.
    I figure that since I can see the photo when I am logged in, it must be somewhere, but where? I originally had it in iPhoto, but it was deleted from there at least two years ago. This PowerBook only has one account, so there's not a lot of places to look through.
    If anyone has any pointers on how to find an image file on a PowerBook running Mac OS X 10.4.11, please let me know.

    HI Stanely,
    Try going to System Preferences/Desktop&ScreenSaver. Click the Desktop tab. Now, go thru the folders listed there to see if the image shows up there. If it does, then go to Spotlight and type in the name of the folder where the image was. Spotlight will populate a list for you. At the top of the list click where it says: Show All. A pane will open. Look for the folder, then on the right click the little white circle with an "i" in it. That will give you the path to find the folder where the image resides.
    You can search Spotlight by typing in these extensions: jpg tiff png pict gif bmp psp that's another way to search for an image.
    Also, open a Finder window and look in the Sidebar on the left. Click where it says: Pictures. Might be in there also.
    Carolyn

  • Need help finding moved image files

    How would I find files after they have been moved? I travel and use a MB Pro laptop. The workflow I'm using is to download images to my desktop, review, rate and add keywords immediately. I make 2 backups, 1 to portable data store hard drive and one to DVD. Then every few days I erase the desktop image files. When I arrive home I download the entire trip's images from the portable storage to my desktop drives (2 500Gb SATA drives).
    Is there an easy way to direct Aperture to look for the files in the new location? Or, failing that, is there a better way to work? I regularly have 40 - 60 Gb of images after a trip and the laptop hard drive is inadequate for the task.

    The question isn't really clear to me yet. If you know what "the new location" is, then it's easy to make Aperture point to it. But that may not be the question. I think you may need to describe your workflow in more detail.
    You don't say how to review etc images on the MBP. If you're using Aperture, it must be with a library. Are you using Managed images there? So is the problem how to transfer data -- images and edits and metadata -- from the library on the MBP to the library (with referenced images??) on the desktop?
    Synchronizing libraries is not something Apple makes easy or offers any real help with. The best way to do it turns out to be to export one project at a time, connect to the other machine and its library, and import the projects. (In the process you might also Relocate images to make them referenced.)
    But your note about the laptop drive being to small is confusing. I don't see where your images are when you're on the road.

  • "Date Created" incorrect in Finder after copying image files from CF reader

    Whenever I download image files (by drag and drop copying) from a CF card reader, the 'Date Created' info incorrectly defaults to 'Dec 31, 1903' in the List view of the Finder window.
    'Date Created' shows up blank in the File Info window, too. Correct file info does however show up in the copied Meta Data.
    I've only been able to transfer correct 'Date Created' info by using Image Capture, which is pretty annoying.
    I've tried several cameras, CF cards, USB & FW card readers, and Macs running both Panther and Tiger. Same problem all around. Interestingly, files copy without a problem onto a PC.
    I'm a photographer and I need to sort my images by 'Date Created' because I often shoot with two cameras and need to know the chronological order in which photos were taken.
    Ideas anybody?
    G5 Mac OS X (10.3.9)
    G5 Mac OS X (10.3.9)
    G5   Mac OS X (10.3.9)  

    stqn wrote:
    photorec ?
    Edit: I see that testdisk and photorec belong to the same package... Still it looks like it should be the right tool for the job; but I might be wrong as I never used it.
    Used it a couple of times, my daughter wiped photos from her mobiles memory card by accident .... Linux to the rescue
    Last edited by Mr Green (2010-12-21 11:01:01)

  • When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

    When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

    When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezone?

  • Finder-pressing spacebar allows viewing images file, sometimes

    I've been having a problem with Finder. When I press the spacebar on an image file, say a jpg, it allows me to see that photo. When I move up or down on another jpg it shows another picture. But when I try to go back to the previous photo, the image shown is blank and when I try to move to the one I just moved from it also is blank. I have to click on two or three previous pictures and start over again.
    This does not affect other files, such as pdf, doc and such; it only affects photos, i.e. .jpg, .psd, .tif etc.
    What could be affecting Finder?
    Thank you.
    Roxy

    R_Rbnsn wrote:
    ...I presume that uses Quicktime to work?
    It does, but the video files you're trying to preview may not be supported by QT. Download and install the latest versions of Perian and Flip4Mac. You should then be able to see any movie using quicklook.
    Perian 1.2.3
    http://perian.org
    Flip4Mac
    http://flip4mac.en.softonic.com/mac
    (hit the green download button (free), ignore the one trying to sell you a paid version).

  • Can Aperture trash the image files (in the finder) that I don't want?

    Hi All,
    Long time iView Media Pro user here and fairly new to Aperture.
    One of the things that I like about iView (and I can't seem to figure out in Aperture) is that I can trash an original file that I do not want to keep from within the app.
    iView actually moves the image file to the trash. This allows you to import all of the images, review them, and trash the ones you don't want to keep.
    It appears that Aperture only trashes the Master (and versions) that it creates in the library and does not physically trash the original files.
    Is there something I am missing here?

    <...>
    It appears that Aperture only trashes the Master (and
    versions) that it creates in the library and does not
    physically trash the original files.
    Is there something I am missing here?
    I think the thing that you are missing is that after import, you should delete your master files in Finder and just leave the ones in the Aperture library. Then when you remove them they are really gone. You can always use the "Export Master" command to get thme out again (untouched) or simply go into the Aperture library and do a find for all images to see them and move them elsewhere (if for some reason you cannot run Aperture).
    One possible flow to make this esier is to always have Aperture import files from CF/SD cards, then format them after import (well, after import and then backup...)

  • Keep having to find missing folders for network image files, although library is on local drive

    I use Lightroom to store my image files on a networked drive.  Whenever I open up Lightroom and want to access the files, it keeps losing the path to the drive and folders.  I have to keep using find missing folders on all the subdirectories to see the files.  Is there something I can do to prevent this from happening each time?

    What is this BSD Name: disk0s1 for that occupy 209.7MB?
    That is your EFI partition and shouldn't be touched.
    I'm missing around 349GB of disc, after I sum up all my folders.. freeing most huge files.
    First, empty your trash.
    Open Finder, Click the Apple Logo > About This Mac > More Info.. > Storage
    This will give you a rough idea of what is taking up disk space
    Here is a helpful guide to follow:
    The XLab: Freeing space on your Mac OS X startup disk
    Here is a helpful program as well:
    Download OmniDiskSweeper for Mac - Find and delete large ...

  • Opening tiff image file and finding pixel values at each point

    I want to open a tiff image file using java.Than i want to find out the pixel values at each point.Also if possible red,green and blue values.
    please mail me answer or code if possible on mail id:
    [email protected]

    Use Java Advanced Imaging to open the Tiff. There is
    a tutorial on it. Look to the left for tutorials, look
    for JAI, do what it says.
    For getting the pixels, do this:
    Use a PixelGrabber to get pixels in array:
    int[] pixels = new int[w * h];
    PixelGrabber pg = new PixelGrabber(img, x, y, w, h, pixels, 0, w);
    pg.grabPixels();
    Use a MouseMotionListner for
    mouseMoved(MouseEvent moueEvent)
    pixel = pixels[mouseEvent.getX() + (mouseEvent.getY()*width)]
    int alpha = (pixel >> 24) & 0xff;
    int red = (pixel >> 16) & 0xff;
    int green = (pixel >> 8) & 0xff;
    int blue = (pixel ) & 0xff;
    Look up the API for MouseMotionListener, PixelGrabber, etc...

  • Problems getting Acronis True Image Home 2010 to find my image files.

    I have recently purchased this A505-S6005 laptop and it has been nothing but a pain in the pretty much ever since I got it. Recently I have tried to roll back to a previous system image I created with Acronis True Image Home 2010 but am unsuccessful everytime I make the attempt.
    Everytime I try to recover from the previous image which I have saved on a external drive I get an error message "Cannot find any hard disk drives" upon startup of the Acronis recovery manager. I get this problem no matter which way I go around it either from the boot cd that I created or directly from Windows and the Acronis software.
    I simply cannot restore from my image file no matter how hard i try to get it to work.
    Does anyone else have these issues with Acronis True Image 2010?

    Satellite A505-S6005 
    Best to post in the Acronis forums.
    -Jerry

  • Dalinton Karma: 0 Registered member my firefox browser will not load html images when i'm using notepad? It load the html files but not image says cannot find

    I'm creating a webpage with Notepad and wanting to see illustrations using my browser, i have loaded the text html files and that works fine however when i try to load images using this command...<img src="life.jpg" width="403" height="403"> it fails to load...error says cannot find file however the file it says it cannot find is the correct name and the image is located in the same folder save as html...is this a pc security problem? Tried different images...saving as jpg, html...thanks

    Any errors in the Web Developer > Error Console (Ctrl+Shift+J) or Web Console (Web Developer > Web Console;Ctrl+Shift+K)?
    See also:
    *https://developer.mozilla.org/en/Tools/Web_Console
    Are you using relative links to the image files?<br />
    Can you post (part of) the code?
    Make sure that you are using forward slashes in the file paths and not backslashes.
    Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images with the cursor Down key).<br />
    *http://kb.mozillazine.org/Images_or_animations_do_not_load

  • How do I find the aperture image files so that I can attach them to an email

    How do I find the aperture image files? I know that you can email images from aperture. But how would I attach an image using Mail?

    if you mean to go into the Aperture library in order to get image files to print with Canon's software it's not really possible. The best you would be able to do would be to get the master image and if you're shooting RAW that will be the RAW file. In any case no adjustments you made to the image in Aperture would be available, versions don't exist as files until you export them.
    If you want to print with the Canon software you would export the image from Aperture and then print that image file.
    If I've misunderstood your question post back,
    regards

  • Finding image files

    In a bid to seperate java files from image files I created a new image folder. Is it now necessary to specify the complete pathname in my code of the image file, create an environment variable or what is there a better way?
    Secondly how do I go about preserving portability when shipping from development to production environments?

    Good idea to have a separate directory for images. If you make sure that directory is in your classpath (when you run your program, that is) then you can get an InputStream for an image like this:InputStream imageStream = this.getClass().getResourceAsStream("/images/babyseal.jpg");That way you don't need to know the actual path name, the classpath takes care of that for you. And this even works if the images directory is in a jar file in your classpath.

  • How to find original image file names in Reader?

    How do I display the original file names of digital images in Reader? I am using Reader 8. In previous versions I used the "Picture Tasks" button in the menu bar to open various dialog boxs that showed the original file names. I am a photographer and clients often order prints using original camera file names. Currently I have to tediously match images between my image browser and Reader placing them side by side. Would be so helpful to display in Reader the original file names. Help anyone? THanks in advance.

    Command-D provides info on the PDF itself but nothing on the image files' metadata. I create PDF docs inside Php CS4 if this is any help. If there is a way in Reader to display all image files' original file names simultaneously please clue me in.

  • I'm unable to upload .doc, .txt, .xls, .ppt or .pdf files. Please help.

    Since two days i'm trying to upload documents and send it through mail but i'm unable to do so. I have tried uploading image files which works but the office documents aren't uploading. I'm unable to figure out the problem.
    I have tried reinstalling Mozilla Firefox. But it didn't help. I use MFF 4.

    natacheenh
    What version of Premiere Elements and on what computer operating system is it running?
    Is this a "it worked before but not now" or "it never worked before" problem?
    Have you gone to preferences and refreshed the Online Services?
    Can you export your Timeline to a .mp4 file saved to the computer hard drive and from there upload the file to YouTube at
    the YouTube web site?
    And, about the YouTube feature within Premiere Elements...
    a. What are the properties of the source media on the Timeline of this project destined for the Premiere Elements built in YouTube feature?
    b. What is the estimated file size and duration of the upload in the sharing area just before you try to start the upload?
    c. How long as this feature not been working?
    Please review and consider.
    Thank you.
    ATR

Maybe you are looking for

  • How do I link to another page in the same iBook?

    I am trying to link from within the text of my book to another page in the same iBook. How do I do that in iBooks Author? For example... The text on page 1 might read.... "If you'd like to jump to the page on herbivores, click here". And that text wo

  • Adobe LiveCycle Designer 10.0 insert QR-Codes

    Hello Adobe Community, I contacted an Adobe supporter via live chat two days ago. He said that the Designer 10.0 supports QR-Codes on PDF. But before buying the expensive software, I want to make sure that it really supports creating QR-Codes (Data M

  • How to get info about updates' repo and versions, including AUR pkgs

    I'm writing a little tool in python that checks for updates and displays notification in gnome about available updates. I'm doing this by syncing database to custom directory with: pacman -Syb /custom/dir and then getting list of updates with pacman

  • I upgraded to ver. 10.4 and now my pc freezes when trying to back up my iphone and ipad2

    Since upgrading itunes to 10.4.3 I am unable to upgrade my software on my iphone 3GS and ipad2. As itunes first backs up these devices, it gets to Step 1 and then freezes. I am running Win 7 and had no problems with the previous versions of itunes. H

  • E71-2 "software already update to date" when its n...

    I got an unlocked E71-2 from amazon new, i know the latest firmware is out but it keeps saying mine is up to date, how do i install the latest firmware i have 100.07.76 they have a newer version out, but the stupid software doesn't see an update for