Bridge CC 2018: Cannot get a TabbedPalette of type "web" (browser palette)

  • 2
  • Problem
  • Updated 3 months ago
  • (Edited)
I have the problem mentioned in the title.


Here is the simplest example (copied quasi-verbatim from the Adobe Bridge CC 2018 Javascript Reference):

#target bridge
// create browser palette  
var webPalette = new TabbedPalette(app.document, "myWebPalette", "myWebID", "web", "http://www.adobe.com";);  
$.writeln("webPalette visible: " + webPalette.visible);

// create ScriptUI palette
var scriptPalette = new TabbedPalette(app.document, "myScriptPalette", "myScripID", "script");  
scriptPalette.content.add('statictext', [15,15,105,35], 'Display this text in my tab.');  
$.writeln("scriptPalette visible: " + scriptPalette.visible);  
I can run it in Adobe Extendscript Toolkit CC and the scriptPalette is created as expected in Bridge. Not the webPalette. I see no error message of any sort. The output on the console is as follows:
webPalette visible: undefined  
scriptPalette visible: true  
Hence it seems that the webPalette is not even created. Certainly it is not visible.

I believe this to be a bug.
Photo of Paolo Ienne

Paolo Ienne

  • 6 Posts
  • 1 Reply Like
  • Frustrated

Posted 3 months ago

  • 2
Photo of Kukurykus

Kukurykus

  • 119 Posts
  • 18 Reply Likes
Here's the code in one piece (as original poster had to copy it from some editor, it's why it got divided into separate lines). Bridge team please do something about:

#target bridge

// create browser palette
var webPalette = new TabbedPalette(app.document, "myWebPalette", "myWebID", "web", "http://www.adobe.com");
$.writeln("webPalette visible: " + webPalette.visible);
// create ScriptUI palette
var scriptPalette = new TabbedPalette(app.document, "myScriptPalette", "myScripID", "script");
scriptPalette.content.add('statictext', [15,15,105,35], 'Display this text in my tab.');
$.writeln("scriptPalette visible: " + scriptPalette.visible);
(Edited)
Photo of Paolo Ienne

Paolo Ienne

  • 6 Posts
  • 1 Reply Like
Thanks Kukurykus! I wish there were an Edit option but cannot see it.

Edit: Funny, this one I can edit, but not the original post?!
(Edited)
Photo of David Converse

David Converse

  • 270 Posts
  • 62 Reply Likes
I believe that Adobe has a bug filed internally about this. FWIW, ScriptUI is a mess. I'd like to see them fix it and unify it with CEP (and improve the documentation/SDK in all areas.)
Photo of Kukurykus

Kukurykus

  • 118 Posts
  • 18 Reply Likes
I'd like too, but I think as far as enough amount of users are still going to use their products like Bridge and don't need those bugs to be fixed then some of us it is problem for can't expect they change anything. I think plenty of people will use Bridge even with bugs they don't like in. So when that happens and their income probably is still satisfactory we have to deal with. It seems they do it for money only and there's no place for passion.