4 Replies Latest reply on Oct 11, 2011 9:32 AM by Harbs.

    [JS/CS4/CS5] Catching a selection event in a ScriptUI interface.

    Andreas Jansson Level 2

      I've got this ScriptUI interface (javascript based), and now I wonder if it would be possible to change one of its button captions depending on whether anything is selected or not, in the active document (would also have to be updated if the user selects or opens another document).


      1. Is it possible to write event listeners for this?

      2. Would it be possible to include this in the same script as the rest of the Script UI interface code (that is, I'd prefer avoiding a separate file in the startup folder).

      3. What's the best source of information regarding events, which ones there are, and how to handle them in javascript?