Copy link to clipboard
Copied
Is it possible to apply JPEG attributes, such as color labels and ratings, to RAW files with the same name in Adobe Bridge?
I searched a bit but couldn't find anything, so I'd like to request a feature like this if it's available.
Its probably the uppercase file extensions? Try this revision. I had to initially fix ".jpg" vs ".jpeg". Obnviously this script could be modified to work with any type of file as needed.
#target bridge
if(BridgeTalk.appName == 'bridge'){
var attrCmd = MenuElement.create('command', 'Copy Attributes', 'at the end of Tools'); //create new menu command
}
attrCmd.onSelect = function(){
try{
var thumbs = app.document.selections;
var baseName = '';
var baseLen = 0;
...
Copy link to clipboard
Copied
Yes you could do this with a script or with EXIFTool. There is no native support for this functionality.
Copy link to clipboard
Copied
Below is a simple script that will copy labels and ratings from a JPEG file to a RAW file. Select all the files to be processed (both JPEG and RAW) and run the script from the Tools menu.
To install, save as PLAIN TEXT (not RTF) with .jsx file extension and place that script into the Bridge Scripts Folder (Bridge Preferences/Settings->Startup Scripts->Reveal My Startup Scripts button) and relaunch Bridge.
#target bridge
if(BridgeTalk.appName == 'bridge'){
var attrCmd = MenuElement.create('command', 'Copy Attributes', 'at the end of Tools'); //create new menu command
}
attrCmd.onSelect = function(){
try{
var thumbs = app.document.selections;
var baseName = '';
var baseLen = 0;
var lbl = '';
var rtg = 0;
for(var i = 0; i < thumbs.length; i++){
if(thumbs[i].core.itemContent.canDoCameraRaw){
baseName = thumbs[i].name.split('.');
baseLen = baseName.length - 1;
if(baseName[baseLen] != 'jpg' && baseName[baseLen] != 'jpeg'){
baseName.length--;
baseName = baseName.join('.');
for(var j = 0; j < thumbs.length; j++){
if(thumbs[j].name == baseName + '.jpg' || thumbs[j].name == baseName + '.jpeg'){
lbl = thumbs[j].label;
rtg = thumbs[j].rating;
thumbs[i].label = lbl;
thumbs[i].rating = rtg;
break;
}
}
}
}
}
}
catch(e){
alert(e + ' ' + e.line);
}
}
Copy link to clipboard
Copied
@ExUSA - Great stuff, thanks for posting!
I tried with a JPG+NEF but the label and ratings were not copied to the raw file. Same name except for extension, refreshed and purged cache for selection and folder. Bridge 2025, Win 11.
Copy link to clipboard
Copied
Hmmm... I tested with CR2 and CR3 files, not stacked. This script just goes off of base filename so it should work with any file pairing as long as one is a RAW file.
Copy link to clipboard
Copied
That's the strange thing, it's not a stack, just two images, nothing happens, this is the result after running the installed script with only these two images selected beforehand:
Copy link to clipboard
Copied
Its probably the uppercase file extensions? Try this revision. I had to initially fix ".jpg" vs ".jpeg". Obnviously this script could be modified to work with any type of file as needed.
#target bridge
if(BridgeTalk.appName == 'bridge'){
var attrCmd = MenuElement.create('command', 'Copy Attributes', 'at the end of Tools'); //create new menu command
}
attrCmd.onSelect = function(){
try{
var thumbs = app.document.selections;
var baseName = '';
var baseLen = 0;
var lbl = '';
var rtg = 0;
for(var i = 0; i < thumbs.length; i++){
if(thumbs[i].core.itemContent.canDoCameraRaw){
baseName = thumbs[i].name.split('.');
baseLen = baseName.length - 1;
if(baseName[baseLen].toLowerCase() != 'jpg' && baseName[baseLen].toLowerCase() != 'jpeg'){
baseName.length--;
baseName = baseName.join('.');
for(var j = 0; j < thumbs.length; j++){
if(thumbs[j].name.toLowerCase() == baseName.toLowerCase() + '.jpg' || thumbs[j].name.toLowerCase() == baseName.toLowerCase() + '.jpeg'){
lbl = thumbs[j].label;
rtg = thumbs[j].rating;
thumbs[i].label = lbl;
thumbs[i].rating = rtg;
break;
}
}
}
}
}
}
catch(e){
alert(e + ' ' + e.line);
}
}
Copy link to clipboard
Copied
It was the extension case sensitivity. Great job, I would have used ExifTool as it's simpler for me.
Copy link to clipboard
Copied
Yeah I think EXIFTool is a lot easier to setup for this use case. I already had an auto-stack script so modifying it didn't take much work. Hopefully the OP can work with this sample script.
Copy link to clipboard
Copied
Thank you, ExUSA.
I'll give it a try.
I appreciate your kindness.
Copy link to clipboard
Copied
This is obviously just a small sample. With EXIFTool or with custom scripts, you can do many more metadata operations but that would take added code.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now