7 Replies Latest reply on Feb 1, 2012 11:14 AM by Gonterman1201

    Trigger an event with key command?

    Gonterman1201 Level 1

      In InDesign CS3_Scripting Guide quote "The following table lists events to which eventListeners can respond. These events can be triggered by any available means, including menu selections, keyboard shortcuts, or script actions." I currently have a script that activates a UI when the user presses save. I am interested in changing that action to happen when a user presses a key.

      I do not see any documentation on this. The UI popping up on save all the time is kind of annoying. I was thinking maybe option or command H or anything really.



      function listen(){

      var mySampleScriptMenu = app.menuActions.item("$ID/kSave");

      var myEventListener = mySampleScriptMenu.eventListeners.add("beforeInvoke", myFunction, false);



      I am using CS5 mac.