Ok, as per the Adobe Bridge Javascript reference, I'm trying to add a custom browse scheme as follows:<br /><br />app.registerBrowseScheme("mim");<br />var root = new Thumbnail("mim://root", "My MIM");<br />root.displayPath="
http://www.pbase.com/"; // just testing<br />root.displayMode="web";<br /><br />app.favorites.insert(root);<br /><br />This inserts the 'My MIM' entry in Favorites - however, there are 2 thumbnails not 1 as expected. Subsequent invocations add another thumbnail each time, so I modified the code as below to check whether it had already been inserted:<br /><br />var hasMIM = false;<br />for (var i=0; i<app.favorites.length; i++)<br />{<br /> if (app.favorites
.name == "My MIM")<br /> {<br /> hasMIM = true;<br /> }<br />}<br /> <br />if (!hasMIM)<br />{<br /> app.favorites.insert(root);<br />}<br /><br />This however does not seem to work. Does anybody know how this is supposed to work or is this a bug?<br /><br />On a related note, does anyone know how to specify a custom icon for the thumbnail in Favorites?