script for matching and moving files

Hello, Scripting Experts!

Let me start by saying that I don’t know anything about scripting, but I thought it’d be worth a shot to see if someone can enlighten me. I’m a photo assistant, not a scripter.

In our photo studio, we’re shooting with a camera that simultaneously creates RAW files and JPEGs, with identical fileneames excepting their extension. Filenames look like this. . . “_W3E0227.JPG” and “_W3E0227.CR2”.

What we do is edit thousands of images using the lo-res JPEGs in Photoshop’s Image Browser, and then move them into a folder, for sake of argument called “Edited JPEGs.” Then, we go back and find the corresponding RAW files and move those into a similarly named folder, “Edited RAW Files” for example. Then we delete the rest of the JPEGs and RAWs.

My question is, can we write a script that will read what’s in the Edited JPEGs folder and automatically move the corresponding RAW files to the Edited RAW Files folder?

Thanks for any help!

Cheers,

Rey

you probably want to read up on folder actions, which you can find more info on in the folder actions section of the applescript help files. creating a script and attaching it to a folder means you would be able to have finder check whenever a file is added to the edited jpg folder, search for the filename in the edited raw folder, and the delete it. good luck!