What exactly is the Inspector Panel?

  • 1
  • Question
  • Updated 2 years ago
Searching for "Inspector" in the Bridge CC 6.2 Help manual results in "No Results Found". I have no idea what this panel is used for.



I've not found anything related in the Preferences.
Photo of grauenwölfe

grauenwölfe

  • 216 Posts
  • 81 Reply Likes

Posted 2 years ago

  • 1
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
An Inspector panel can be used for displaying information that is gathered by a script.
There are examples in the Adobe Bridge SDK.
Here is a script that I wrote to display the number of keywords for selected files.

#target bridge
function KeyDetails(){
    var pp = new InspectorPanel("With Compliments");
    this.panelRef = pp;
    var zzz = [["Number Of Keys","[[javascript:getDetails()]]"]];
    var tp = new TextPanelette("File and Keyword Details", "", "[[this]]", zzz);
    pp.registerPanelette(tp);
    app.registerInspectorPanel(pp);
    try{
    app.document.displayInspectorView = true;
    }catch(e){}
}
function getDetails(){
    var retval = "";
    for(var i=0; i < app.document.selections.length; i++) {
        var thumb = app.document.selections[i];
        var selectedFile = thumb.spec;
        md = new Thumbnail(selectedFile).synchronousMetadata;
        md.namespace = "http://ns.adobe.com/photoshop/1.0/";
        var keys = md.Keywords;
        retval +=decodeURI(thumb.spec.name)+" Keywords = "+keys.length+"\n";
    }
    return retval;
}
KeyDetails();
Photo of Stephen Marsh

Stephen Marsh

  • 74 Posts
  • 15 Reply Likes
Another example here (again from Paul) for the display of Focal Distance:

https://forums.adobe.com/message/5664018
Photo of grauenwölfe

grauenwölfe

  • 216 Posts
  • 81 Reply Likes
Had no idea this was around. Thank you guys for this info.

Do you mind me asking exactly how you learned of this? I couldn't find anything, anywhere about it.

Thanks again.
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
All the information can be found here.
http://www.adobe.com/devnet/bridge.html

As Steve has said unless you want to find out about scripting you would never know.
Photo of Steve Sprengel

Steve Sprengel, Champion

  • 2656 Posts
  • 341 Reply Likes
The first reply says there are examples in the Adobe Bridge SDK.   If you're not writing scripts for Bridge you probably wouldn't need to know about it.
Photo of PECourtejoie

PECourtejoie, Champion

  • 792 Posts
  • 285 Reply Likes
There is a need, for the end user, to have a repository of scripts that work with that panel. (and other scripts too!)