Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Intelligent complementary file selection (jpg + maching raw file)

Community Beginner ,
Jan 24, 2013 Jan 24, 2013

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.

TOPICS
Scripting
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 25, 2013 Jan 25, 2013

What type of raw file are you using CRW, CR2, NEF, MOS, TIFF,etc..

Also are you wanting the label and rating transfered?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 25, 2013 Jan 25, 2013

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 25, 2013 Jan 25, 2013

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;

    }

};

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 25, 2013 Jan 25, 2013
LATEST

Thank you, it works great !

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines