Given the following script on InDesign CS5.5 (executed from the startup script folder):
app.addEventListener("afterPrint", fireAfterPrint, false);
After printing, extendscript opens up with a yellow line on at the function declaration. It seems like a breakpoint, because I can hit play and the alert pops up.
This breakpoint behavior happens after every print, whether Extendscript is open or not.
This is obviously not the behavior I desire. Is there anyway to have the event go off without breaking?
I tried adding app.scriptPreferences.userInteractionLevel = 1699640946; after the #targetengine statement with no change.
Are you sure there's no $.writeln() in your script?
Sounds weird. Try restarting...
Alternatively, wrap the contents of your function in a try/catch block.
Was caused by the extendables scripting library. Once I removed that include the behavior stopped.