Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Why does this add two favourites?

Community Expert ,
Aug 15, 2005 Aug 15, 2005
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
TOPICS
Scripting
469
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2007 Sep 20, 2007
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines