I create an event listener using a startup script as folllows:
var myEventListener1 = app.addEventListener("beforeClose", exported);
The event handler "exported" is a function that checks whether the document has been exported and displays a prompt if it hasn't.
The problem I am having is that the event handler "exported" is being run when objects are "copied and pasted" in an open document!
Does anyone know why this would happen? No document is being closed.
Retrieving data ...