Skip to main content
Tminus10web
Participant
February 15, 2011
Question

Script to display IPTC Metadata ('Description') in Content Column

  • February 15, 2011
  • 1 reply
  • 779 views

I've tried everything I can think of to make OnLocations Metadata 'comments' and 'description' show up in the content panel of Bridge.   Do I need to pay someone to write a script for this?   I have my camera folk commenting relevant data in those fields, but I'm not seeing how to put it into a column in Bridge. 

I do understand that this info shows up in the metadata panel under IPTC (IIM, legacy) and IPTC Core... but that doesn't help me scan an entire directory for comments at a glance.    Any suggestions would be hugely appreciated...

Thanks in advance,


David

This topic has been closed for replies.

1 reply

Paul Riggott
Inspiring
February 15, 2011

This will show the "Description" field in an Inspector panel.


getDetails = function(){
var startTime = new Date();
var retval = "Description Details: " + startTime + "\n";
retval += "";
for(var i=0; i < app.document.selections.length; i++) {
  var myObj = app.document.selections;
        md =  myObj.synchronousMetadata;
        md.namespace = "http://purl.org/dc/elements/1.1/";
        Desc = md.description;
  retval += " - " + myObj.name + " "+"Description:\n"+Desc+"\n";
}
return retval;
}
ExtraInfo = function(){
var pp = new InspectorPanel("Extra File Details");
this.panelRef = pp;
var kvp = [["Description","[[javascript:getDetails()]]"]];
var tp = new TextPanelette("Extra Information", "Descriptions", "[[this]]", kvp);
pp.registerPanelette(tp);
app.registerInspectorPanel(pp);
    try{
app.document.displayInspectorView = true;
    }catch(e){}
}
ExtraInfo();


I have no idea what field you are calling 'comments' though.