Assigning Keyboard Shortcuts to Scripts
How to make working with scripts even faster and more efficient by launching them from the keyboard in InDesign.
One of the great things about InDesign is that you can assign a keyboard shortcut to almost anything—even scripts! And those little helpers can really save you time. For instance, consider the SelectObjects script that ships with InDesign. It lets you quickly select objects with the same attributes, which you can define in the script’s dialog box. But running a script like this can be a hassle, since you have to locate it by looking through several folders in the Scripts panel and then double-click the script. Fortunately, you can make the process of running the script instantaneous by assigning a keyboard shortcut to it. Here’s how.
First go to the Edit menu and at the bottom choose the “Keyboard Shortcuts…” command. Then choose Scripts from the Product Area.

Look for the script SelectObjects.jsx in “Application: Samples: JavaScript:” Now enter a shortcut into the “New Shortcut:” field.

If you never added a custom keyboard shortcut InDesign will ask you to save a separate shortcut set which will contain all of the default shortcuts plus the ones you add. Save the new set and have the script ready at the push of a button.
This article was last modified on August 16, 2021
This article was first published on February 26, 2019
Commenting is easier and faster when you're logged in!
Recommended for you
The 5 Rules of Efficiency for InDesign
You'll Rake In the Efficiency Jackpot Every Time with These Five Basic Rules
A Data Merge Script for Outputting to Individual Files
If you need instruction on using InDesign’s Data Merge features, Colin Fla...
