Skip to main content
Inspiring
Jun 17, 2019 2:40 PM UTC
Answered

How can I create a shortcut to execute a script?

I would like to create a shortcut on the keyboard as Ctrl+L to execute a script file on the illustrator how can I do this?

CarlosCanto
CarlosCantoCorrect answer
Community Expert
Jun 17, 2019 3:10 PM UTC

install the script so it's accessible from the File->Scripts Menu, then record an action to run such script and give it a shortcut key.

It'll help if you create a new Set to record your action into. That way you can save your Action. Sometimes Illustrator "forgets" the script after restarting, if that happens you can easily Load the action instead of re recording.

13 replies

MikeLe20
Participating Frequently
Nov 15, 2026 4:08 PM UTC

For anyone finding this now on a Mac: once a script is in Illustrator's Scripts folder, it shows up under File › Scripts, and a menu item can go on any key, not just the F-keys Actions allow.
I built a free Mac app for this called Super Shortcuts. You choose File › Scripts › your script as the menu item and press the key you want, for example Caps Lock + L. There's no Action to record. It's free, with an optional $39 one-time license.

Translate
CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
Jun 17, 2019 3:10 PM UTC

install the script so it's accessible from the File->Scripts Menu, then record an action to run such script and give it a shortcut key.

It'll help if you create a new Set to record your action into. That way you can save your Action. Sometimes Illustrator "forgets" the script after restarting, if that happens you can easily Load the action instead of re recording.

Translate
pixxxelschubser
Community Expert
Community Expert
Jun 17, 2019 6:08 PM UTC

Side note (for future questioners):

This works only with CC 2018+

Translate
Stefan Rakete
Inspiring
Sep 28, 2019 7:49 AM UTC
I am on CC2019 (Mac) and this is not working for me
Translate