0 Replies Latest reply on Feb 1, 2013 3:57 AM by thinkink_es

    It´s posible add event listener to capture before delete pages

    thinkink_es Level 1

      I need to capture a event before remove a page and make some action, if it's posible fire this and prevent default.

       

       

      thanks

       

       

       

      var myDocument=app.activeDocument;

      var myPage = app.activeWindow.activePage;

        myPage.eventListeners.add("beforeDelete", beforeDeletePage);

       

       

      function beforeDeletePage(){

      // do something

      }