Tagging RAW+JPG photos.

Started by ms350125, January 05, 2018, 10:09:49 AM

Previous topic - Next topic

ms350125

Hello,
I'm trying to figure out a way to have exiftool add category 'RAF' to a JPG file if photo was shot in RAW+JPG mode.  I intend for the files to be in the same folder at the time of running of exiftool through Hazel.

I guess I can describe it as 'Add category RAF to filename.JPG if filename.RAF exists in the same folder'.  How can I convert it into exiftool command?

PS. The other option would be to look for specific value from metadata, but so far I was unable to locate or derive it.

Phil Harvey

Try this:

exiftool -srcfile %d%f.jpg -TAG+="RAF" -ext raf DIR

Where TAG is whatever you are using for your category tag.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ms350125

Thank you Sir, this worked beautifully.