I'm having trouble with exceptions thrown by scripts that appear in custom menus.
Whenever an error is encountered when thrown by a script executed from one of these menus, it causes the ESTK to open and break on the offending line. For extra frustration, this happens even if the exception originates from within a try/catch block.
To outline what is happening:
I create a file, throw_error.jsx, in which I put one line:
When run from my menu, it opens the ESTK:
If I put this file in the scripts folder and run it from the scripts palette the exception is shown by the standard InDesign script-exception dialog:
Any ideas how to stop the ESTK catching the error?
[Edit] Sorry, I can't get it to embed the images properly [/Edit]