Question
Getting error when adding a simple javascript file to StartupScripts
I am running Adobe Creative Suite 2 Bridge version 1.04 on a Mac OSX and I am getting a very consistent error when I add a javascript file to the StartupScripts directory.
Basically, if I put a file in the StartupScripts folder, found at ~/Library/Application Support/Adobe/StartupScripts/bridge/1.0, that modifies the navigation bars or updates the Favorites Pane, then it consistently requires me to reboot Adobe Bridge two times to successfully load the plug-in. On the first reboot, Bridge will display an error message saying, An error occurred while running a script. The script may not be compatible with this version of Bridge. Check for available updates by selecting the Updates command in the Help menu. And no plug-ins will be loaded. On the second reboot, Bridge will display another message saying, There were problems loading a startup script last time Bridge was launched. Would you like to load them now? Then if I press Yes everything will work fine and the next reboot will again display the error message, otherwise if I press No, the updates will not be loaded and the next reboot will ask if I want to load them now.
I wrote a very simple javascript file along the lines of:
var topBar = app.document.navbars.filesystem.top;
topBar.main = topBar.add( "panel", [5, 5, 760, 32], undefined);
topBar.main.address = topBar.main.add( "edittext", [3, 3, 600, 22],"");
topBar.main.browse = topBar.main.add( "button", [610, 3, 680, 22],"Browse");
topBar.main.go = topBar.main.add( "button", [690, 3, 740, 22],"Go");
topBar.visible = true;
If anyone knows what might be causing this problem, I would be very grateful.
Thanks.
Evan Appleby
Sony Pictures Imageworks
Basically, if I put a file in the StartupScripts folder, found at ~/Library/Application Support/Adobe/StartupScripts/bridge/1.0, that modifies the navigation bars or updates the Favorites Pane, then it consistently requires me to reboot Adobe Bridge two times to successfully load the plug-in. On the first reboot, Bridge will display an error message saying, An error occurred while running a script. The script may not be compatible with this version of Bridge. Check for available updates by selecting the Updates command in the Help menu. And no plug-ins will be loaded. On the second reboot, Bridge will display another message saying, There were problems loading a startup script last time Bridge was launched. Would you like to load them now? Then if I press Yes everything will work fine and the next reboot will again display the error message, otherwise if I press No, the updates will not be loaded and the next reboot will ask if I want to load them now.
I wrote a very simple javascript file along the lines of:
var topBar = app.document.navbars.filesystem.top;
topBar.main = topBar.add( "panel", [5, 5, 760, 32], undefined);
topBar.main.address = topBar.main.add( "edittext", [3, 3, 600, 22],"");
topBar.main.browse = topBar.main.add( "button", [610, 3, 680, 22],"Browse");
topBar.main.go = topBar.main.add( "button", [690, 3, 740, 22],"Go");
topBar.visible = true;
If anyone knows what might be causing this problem, I would be very grateful.
Thanks.
Evan Appleby
Sony Pictures Imageworks
