Skip to main content
Participant
June 6, 2006
Question

Error after installing "Import from Camera" script

  • June 6, 2006
  • 5 replies
  • 836 views
Hallo, after installing Import from Camera script for Bridge on a Mac , I get an error when I open Illustrator. The error message says:

'b'Error in /Library/Application Support/Adobe/StartupScripts/ImportCamera_BR.jsx
'b'Line39: ImportCamera.store = ScriptStore.open("$$$ImportCameraStorage");
'b'undefined is not an object

The program seems to start correctly after I click on OK on this error message, but it is a bit annoying. Also I don't know if it has any other consequences.

Does anybody know the cause of this and a solution.
Thanks a lot.
Giorgio
This topic has been closed for replies.

5 replies

Participant
July 27, 2006
Hi Bob,

I've moved the location of the script

setfilenametotitle.jsx

To the Startup Scripts folder still using the double ==

It now shows up in bridge

but when I open both AI and ID I get the Error message...

Line 14: menu.onSelect = function(m)
undefined is not an object

The script works as I beleive it's supposed to and shows up in the tools menu in Bridge but doesn't show up at all in Scripts Manager in Bridge.

I'd like to see this resolved if I can and don't know if AI or ID are really affected at all...

If you could provide some insight for this that would be great... otherwise let me know if I should just let this go and move on...

Thanks for your help!

Keith
Participant
July 27, 2006
Hi Bob,

I'm having trouble with a John Beardy and Peter Krogh script..

setfilenametotitle.jsx

Right now in the scripts manager I'm getting an error in line 12 that reads...

TypeError: create redeclared

Line 12 I believe reads...

menu.onSelect = function(m)

It's a short script but none the less it has an error that seems to not let it load properly as a Bridge script.

I have the script in the WAS folder right now...

With the two == signs reading

if (BridgeTalk.appName == "bridge")

The link to the script's page is...

http://www.damuseful.com/pages/PimpMyBridge.html

The script is at the link named "Filename to Title"

Please let me know if you have any insight into this...

Thanks!

Keith
July 26, 2006
Interesting stuff...

Yes, there should be two "=" in there

There should also be a line:

#target bridge

at the top of the file.

The bottom line is that ID and AI are loading the script when they shouldn't be. Placing scripts in the WAS folder will fix it as the apps load from startup scripts. But to do so, you need the suite (and ScriptManager)

One would expect that the BridgeTalk.appName == "bridge" would keep the other apps from loading, but evidently that's not working in either AI or ID...

Bob
Participant
July 26, 2006
Hi Bob Stucky,

I have found the following info on the Peter Krogh's DAM Forum in a post by John Beardy Regard in adding another = sign in the top part of the script as follows.

Here's the link...

http://thedambook.com/smf/index.php?topic=359.0

Here's the post... I wonder if there's a missing = sign at the start. I think it should read like this with two ='s

if (BridgeTalk.appName == "bridge")

This refers to another Script called "setfilenametotitle.jsx" but is this still applicable to ImportCamera_BR.jsx ?

If I add the extra = sign I get diferent error in Illustrator and indesign that reads like this...

"Line 14; menu.onSelect = function(m)
undefined is not an object"

Is that better or worse than getting the error message...

Line 12: var menu = MenuElement.create("command","Write Filename to IPTC Title Field",at the end of Tools");
MenuElement is undefined.

By the way I'm no longer getting an error message on the ImportCamera_BR.jsx script any more... is it because I moved it to the "Workflow Automation Scripts" folder? ...Or is it because an application will only display one error message at launch and that is already being displayed as a result of the "setfilenametotitle.jsx" script setting?

Please let me know...

Keith
June 6, 2006
You are missing AdobeLibrary2.jsx, it should have been included with the download. It belongs in the start up script folder.

Bob