Mobile app version of vmapp.org
Login or Join
Mendez620

: Batch processing/Renaming Jpeg to RAW automatic name matching This is an awfully specific problem, but it seems possible so I thought I'd see if there was the IT God above all IT Gods in here

@Mendez620

Posted in: #AdobePhotoshop #BatchProcessing #FileFormat #Save

This is an awfully specific problem, but it seems possible so I thought I'd see if there was the IT God above all IT Gods in here :)

So....

I run an In Person Sales business where we showcase pictures to clients after a shoot. The pictures are shown in Photoshop in JPEG format, while the RAW versions are in the same folder.

However, when the final pictures have been selected and are open in Photoshop, I would like it to batch process the RAW version/corresponding filename of the JPEGS that are open and rename them with prefixes changed.

Basically, I open 10 photos, discard 8 and am left with IMG_01 and IMG_20, and to save time I would like Photoshop to transfer the corresponding RAW version of each file and batch process them into another folder while renaming them so I don't have to look for each RAW file when I have 16 images for every client. Before I came they would just take a screenshot of the opened/selected images and the retouching team would have to find the matching numbers among 150+ photos.

Yes, I am aware that there is most likely a way easier way to process and batch the images, like opening them in Lightroom instead of the JPEG version in photoshop, but let's pretend like people are stubborn and have a hard time adapting to change here ;)

Any suggestions?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Mendez620

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angie364

As you noted, Photoshop is not the best tool for this. You'd be better served Using Adobe Bridge or Lightroom. Lightroom can automatically "lump together" the RAW and JPEG files. Lightroom is pretty slow to build the view. Adobe Bridge requires no import. You didn't specify which OS you are using.

Let's assume you have two directories:
CANDIDATES with all jpegs and correspondingly named .raw files.
CANDIDATESCULLED where you will put the jpegs that pass criteria.

One way to approach this is to use the "Photoshop Image Processor" built in script. The script saves every open file (assuming all the duds have already been closed) into the CULLED folder. Thereafter run a batch script that finds the raw files in CANDIDATES corresponding to the JPEG files in CULLED photos and copies (or moves them) into the same folder.

In Windows the batch file would look something like this assuming CANDIDATES is the parent folder of CULLED, and that the batch is run from the CULLED directory.

GETRAWS.BAT
@ECHO OFF
FOR %%f in (*.jp*) do (
echo %%f was selected
@REM Copy all files from the parent directory with the matching filename
copy ..%%~nf.* .
)


If you know your raw files are always .NEF or .RAW or .CR2, .DNG you can change the copy to copy only ..%%~nf.NEF for example. You can also use MOVE. On second thought, you probably would prefer the .* to copy all matches in case you have already made some adjustments - assuming you have enabled sidecar files to save the Adobe Camera Raw (or Lightroom) adjustments.

The construct %%~nf means retrieve only the file name (not extension) from the variable "f". E.g. if f=imagename.jpg then %%~nf=imagename

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme