2 Replies Latest reply on Sep 18, 2008 12:13 PM by D Zurn

    All versions of ID - JS: Automating keyboard shortcuts

    JADarnell Level 1
      Hello everyone:

      Once again I have an off-the-wall question. This small script used to change color settings that I am working on is almost complete; I just need to add a few more touches to it to make it perfect. My intention is to link it to a keyboard shortcut once it is distributed to the 100-odd machines (Mac and Windows) we have in the plant.

      Actually linking the script to a keyboard shortcut, however, on all those computers is going to be tedious and time consuming. I would love to write a script to do the job, if that is possible in JS.

      Looking at the documentation, however, I saw no information on how one might go about automating the setting up of a keyboard shortcut. Does anyone know if it is possible, and if so, where I can read about it?

        • 1. Re: All versions of ID - JS: Automating keyboard shortcuts
          Peter Kahrel Adobe Community Professional & MVP
          Unfortunately that's not possible. Please log a feature request at http://www.adobe.com/support/feature.html -- if enough people ask for it, maybe we'll get it.

          • 2. Re: All versions of ID - JS: Automating keyboard shortcuts
            D Zurn Level 1
            InDesign shortcuts are in a file that you can copy to your users' hard disks in the right spot. This would overwrite their existing shortcuts so it might be of limited use.

            You can also add and COLOR the corresponding menu using menu sets. You can also make an entire "workspace" file which I believe can incorporate all those things at once.

            As Peter said, installing these files on 100+ hard disks would NOT be scriptable through InDesign. [edit: NOT]

            However you could likely write a Windows BAT file or an AppleScript to put the desired master ".indk" or XML files in the right spot:

            ~/Library/Preferences/Adobe InDesign/Version 5.0/InDesign Shortcut Sets/John's Colorsetting shortcut.indk

            First start with a clean slate, then add the shortcut(s) normally in ID. Then copy the resulting file to another user's computer and see if the setting shows up correctly.

            Hope this helps until Adobe adds it to the scripting model ;)