Skip to main content
john beardsworth
Community Expert
Community Expert
August 16, 2005
Question

Why does this add two favourites?

  • August 16, 2005
  • 1 reply
  • 515 views
I've tried a number of variations on a startup script that adds a thumbnail to the favourites panel, but in each case the script creates two identical favourites. This was adapted from one in the JS reference:

#target bridge;
app.registerBrowseScheme( "bank" );
var bankRoot = new Thumbnail( "bank://root", "My Bank" );
bankRoot.displayPath = "http://www.adobe.com/";
bankRoot.displayMode = "web";
app.favorites.insert( bankRoot ); //add node

Tried this one too: Robert Stucky, "Bridge script examples" #7, 27 May 2005 1:28 pm

The same happens with each script. Any thoughts?

John
This topic has been closed for replies.

1 reply

Participant
September 20, 2007
I ran into this issue as well. I found that if you listen for the "create" event when the document is created. You can then add a single favorite to the favorites panel.

Hope this helps! :)

Nick