0 Replies Latest reply: Jan 29, 2010 2:50 AM by Skempy RSS

    [CS4 JS] Event beforeClose

    Skempy Community Member

      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.

       

      Thanks

       

      Simon Kemp.