Some related info. In trying to understand script-defined browse schemes, I copied this code directly from the Bridge Javascript Reference (changing paths and URLs to real ones in my system) and it does not quite work. Here's the code from pages 36-37.
// this is code copied directly from the documentation
app.registerBrowseScheme( "bank" );
var bankRoot = new Thumbnail( "bank://root", "My Bank" );
var transactions = new Thumbnail( "bank://transactions", "Transactions" );
bankRoot.displayPath = "http://www.google.com";
bankRoot.displayMode = "web";
transactions.displayPath = "/C/icons";
transactions.displayMode = "filesystem";
bankRoot.insert(transactions); //add thumbnail child
app.favorites.insert( bankRoot ); //add node
app.favorites.addChild( bankRoot, transactions ); // add subnode
I successfully get a new node in the favorites pane. Clicking on it shows the web page it's supposed to in the content pane and shows the sub-node in the favorites pane.
Clicking on the sub-node in the favorites pane, generates a script error somewhere off in stockphoto Javascript and, after ignoring that error in the debugger, the sub-node does not display the contents of the directory that it's supposed to.
In fact, looking at it in the debugger, Bridge thinks the sub-node thumb has a type of "other" which probably explains why it doesn't get any default file/directory behavior. The documentation on page 37 implies that it should inherit default file/directory behavior.
Still confused, but trying to provide helpful diagnostic info...
--John