Implementing a script to edit metadata in RAW files
Hello everyone,
I'm new to this group and not expert at all in using Bridge. I have a requirement here, but also some doubts, so I would like to receive some hints… here are the facts:
Requirement
Almost always, after generating a .jpg (or .png) file at the end of a typical Photoshop processing section, I rename it, replacing the name automatically generated by the camera (essentially, an abstract progressive code) with a self-explanatory one (such as: "maple in autumn.jpg"). By doing so, however, I lose the link between the .jpg file and the RAW from which it was derived.
Sometimes, however, I have happened to "rethink" the result of an elaboration and therefore want to redo it to modify it accordingly, but, having lost the link between the jpg and the RAW, I have to remember it by myself or waste time trying to recover the "right" RAW (perhaps by dint of attempts between several RAWs that are almost identical... I know that I could also save the processed file in Photoshop's .psd format, but usually these files are very large and my disk is already almost full...)
Solution
Implement a script to be launched in the directory of the computer where the RAW files were saved as soon as they were downloaded from the camera, which performs these operations:
- for each of the RAW files present:
- reads the name of the file
- reads the shooting date in the Exif data inside the file
- creates a unique key, such as: "filename|data" (for example "_JK40511.ORF|20241121")
- writes the newly created key in a record, normally neither used nor automatically rewritten, among the many available in the metadata.
In this way, each jpg file generated by Photoshop, for example, will contain among its metadata the name (in the key made unique by the presence of the shooting date, too) of the original RAW file.
Possible issues
- in which language should I write the script? My Bridge is installed on a mac, where Script Editor runs. But can this language access in R/W the metadata of an image file?
- actually I do not use .RAW files but .ORF or .RW2 (the proprietary RAW formats of Olympus and Panasonic respectively): would a similar script work on both types of files without modifications or should it have to be customized for each format?
This is what I thought, but I wouldn't be surprised if there were other possible solutions, maybe much simpler or even "free" (in the sense that they are already implemented in Bridge and ready to use, but I don't even know that they exist...). This is why I tried to ask here, sure to meet someone much more expert and skilled about these subjects.
Thanks in advance,
Ivan (Milan, Italy)
