I'm banging my head against the wall here, perhaps there is a simple solution?
The script below changes the label of a photo to "Approved" (green). After execution, nothing seems to have happened in Bridge. If I click on the photo, the preview window has a green label, but the thumbnail doesn't. It's only when I do View > Refresh in Bridge that the thumbnail's label becomes green.
Code: Select all#target "bridge";
var f = new File('~/testfile.jpg');
if (!f.exists)
alert('Does not exist: ' + f);
var tn = new Thumbnail(f);
app.synchronousMode = true;
tn.core.quickMetadata.label = 'Approved';
app.synchronousMode = false;
tn.refresh();
Is there a way to invoke the View > Refresh command by scripting?
Bridge labels (not refreshing)
-
Paul MR
Bridge labels (not refreshing)
Please try this...
Code: Select all#target "bridge";
var f = new File('~/testfile.jpg');
if (!f.exists) {
alert('Does not exist: ' + f);
}else{
var tn = new Thumbnail(f);
tn.label = 'Approved';
}
Code: Select all#target "bridge";
var f = new File('~/testfile.jpg');
if (!f.exists) {
alert('Does not exist: ' + f);
}else{
var tn = new Thumbnail(f);
tn.label = 'Approved';
}
-
kpt
Bridge labels (not refreshing)
<THUMP!>
(That's the sound of my head hitting the desk!)
Thanks Paul, don't know how I missed that
(That's the sound of my head hitting the desk!)
Thanks Paul, don't know how I missed that