Copy link to clipboard
Copied
Hi, I rank all my jpg file in bridge (Because, I prefer rank file with all effect apply) and after, I want to apply the same ranking to my associated raw filename. I use the filter on the left to select only jpg file, but, I'm not able to select corresponding raw file. Is there a way to select corresponding raw file using the current selection of jpg file ? Right after, I will be able to rank everything easily. Thank you for you help.
Copy link to clipboard
Copied
What type of raw file are you using CRW, CR2, NEF, MOS, TIFF,etc..
Also are you wanting the label and rating transfered?
Copy link to clipboard
Copied
I'm using .ARW file (Sony RAW file). I wanna select the same file with different extension. For example, I rate _DSC6662.jpg file, I use filter to show only my 5 star rating example. I select all .jpg, and after, I want to apply the same rating to my _DSC6662.ARW file (It's the raw file associated "the same picture" than the jpg file). The rating is not the only raison why I want selecting corresponding file. If I want to copy my jpg and their corresponding .arw file, I've to select both type and after, use the command File-Copy to... I don't want to review 2 identical file each time, I wanna review only one type, and after, select my .jpg file (reviewed file) and select the corresponding raw file and apply setting or rating, or copy or move both file.
Copy link to clipboard
Copied
If your raw files are in the same folder this script should copy the rating and label to your raw files, no selection is required as it will do the whole folder.
#target bridge
if( BridgeTalk.appName == "bridge" ) {
labelRate = MenuElement.create("command", "Label Rate from JPGs", "at the end of Tools","labelRate");
}
labelRate.onSelect = function () {
app.document.deselectAll();
var sels =app.document.getSelection("jpg");
for(var a in sels){
var sourceFile = File(sels.spec);
var destFile = File(sourceFile.toString().replace(/jpg$/i,"arw"));
if(!destFile.exists) continue;
var thumb = new Thumbnail(destFile);
thumb.rating = sels.rating;
thumb.label = sels.label;
}
};
Copy link to clipboard
Copied
Thank you, it works great !