6 Replies Latest reply on Mar 22, 2016 1:24 AM by Laubender

    Getting notification on deleting/moving/updating a group from InDesign document

    kapoor_aman27 Level 1

      Hi,

       

      I was checking the scripting object model for InDesign CC 2015 and came across the group.addEventListener functionality.

       

      I tried adding an event listener to the group but I am not getting any notification in my handler function. Below is the code I used:

      myGroup.addEventListener(Event.BEFORE_DELETE,  function() {
          alert("aaa");
          }
      );
      

       

      On deleting the group, the handler function does not get called. Anyone knows how to add the event listener on the group?