5 Replies Latest reply: Nov 17, 2012 1:11 PM by William.cain
ChristinaC Level 1 Level 1
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!


Xserve, Mac Pro, G4, iMac, Mac OS X (10.6.4)
  • mns579 Level 4 Level 4
    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.
  • maxpowerphoto Level 1 Level 1
    Did you ever find a solution for this problem? I have a similar situation here...
  • altert Level 1 Level 1

    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:


  • scrabble755 Level 1 Level 1

    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 Level 1 Level 1

    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?