Skip to main content
Inspiring
June 17, 2019
Answered

How can I create a shortcut to execute a script?

  • June 17, 2019
  • 1 reply
  • 11613 views

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?

Correct answer CarlosCanto

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.

1 reply

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
June 17, 2019

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.

pixxxelschubser
Community Expert
Community Expert
June 17, 2019

Side note (for future questioners):

This works only with CC 2018+

zandwacht
Inspiring
August 1, 2024

If you install the script in the Illustrator application folder > Presets > Language folder > Scripts

and during the recording of your action use the Insert Menu Item option from the Actions menu to record the script, it should work.


I confirm that this works, thanks! I had no idea you had to use this weird workaround, I expected the action to just record any menu item I was using...

 

I now have a shortcut to rename the thousands of "copy 1" and "copy 2" objects in my layers panel, that I didn't want appended upon copying in the first place.