Skip navigation

Automator Search for File Names

3023 Views 5 Replies Latest reply: Nov 17, 2012 1:11 PM by William.cain RSS
ChristinaC Calculating status...
Currently Being Moderated
Nov 30, 2010 12:22 PM
Hello! I've been tasked with delivering two sets of photos to a client. I have a folder of JPEG versions of the photos that are the "selects" or picks desired by the client. However, I also need to deliver the accompanying RAW photo files (.CR2 and .XMP). All of these files share the SAME file name except for the extension. All the the RAW photo files are in separate folders from the JPEGs.

My goal is to create an automation that will extract the file name of the jpeg, send it to the finder for a search, and copy the .CR2 and .XMP files into a destination folder.

The "Find Finder Items" action requires individual data to be typed in and doesn't seem to be a good fit for what I need. Please let me know if Automator is able to help me out with this, if there is another program better suited for this kind of automation, or if I just have to do it manually. The only other thing I can think to do is a well choreographed "Watch Me Do" lol!

Thanks!
Xserve, Mac Pro, G4, iMac, Mac OS X (10.6.4)
  • mns579 Level 3 Level 3 (565 points)
    Currently Being Moderated
    Dec 2, 2010 1:27 PM (in response to ChristinaC)
    The third-party Compare Folders action might work: http://automatorworld.com/archives/compare-folders . It compares two folders, with the option of ignoring file extensions, so that 1.jpg in the source folder will match 1.cr2 in the target folder. But if, as you say, the RAW files are in several separate folders, then the action would need to be run repeatedly against different targets--OR, if you want to do things quickly, copy all the RAW files into a single target folder to perform the comparison and gather the files you need.
    MacBook Pro, Mac OS X (10.6.4)
  • maxpowerphoto Calculating status...
    Currently Being Moderated
    Dec 5, 2010 7:14 AM (in response to ChristinaC)
    Did you ever find a solution for this problem? I have a similar situation here...
    MPB15"i7
  • altert Calculating status...
    Currently Being Moderated
    Feb 27, 2012 2:46 PM (in response to ChristinaC)

    well, I don't suppose that it's really relevant after all this time) but as I haven't found good solution to similar problem and found this thread I wrote this automator/shell script so I put it here in case it could be useful for someone. It asks for jpeg and raw folders and copies matching raws to 'select raws' folder on the same level as original jpeg folder (it's easily customized though)

     

    It can be downloaded from:

    http://altert.net/uploaded/raws.app.zip

  • scrabble755 Calculating status...
    Currently Being Moderated
    Nov 9, 2012 2:14 PM (in response to altert)

    altert,  You have no idea how thankful i am to you for putting this on here! I have been looking for this exact thing for about  3 hours.

     

    Thank you, thank you, thank you!

  • William.cain Calculating status...
    Currently Being Moderated
    Nov 17, 2012 1:11 PM (in response to altert)

    Hi altert,

    I think I am trying to do the same thing as you, I have a folder of selected jpegs and one of Raw's. I need to weed out the unwanted raw files but they have been selected in the jpeg format. I have tried to run this action but it fails due to a growl issue can you provide and help?

     

    Thanks

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

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