4 Replies Latest reply on Jun 1, 2017 1:19 PM by Naoki-Hada

    [Q] Handling selection changed event

    Naoki-Hada Level 1

      Hi all,


      Is it possible to handle when selection has changed in ExtendScript?


      I'd like to do like following code, but I'm not sure the capabilities.


      I appreciate any comment or suggestions.


      Thank you.


      Test code: not working

      #target illustrator


      testOnChange = function(param){

          alert("App selection has changed.");



      app.selection.addEventListener("change", testOnChange, false);