Is there a way to set custom shortcut key to specific Illustrator script?
Is there a way to set custom shortcut key to specific Illustrator script?
I want to run a script which is listed in my script collection with Alt+1 key
is this possible?
Is there a way to set custom shortcut key to specific Illustrator script?
I want to run a script which is listed in my script collection with Alt+1 key
is this possible?
You can use autohotkey. I prefer version 2.
Download autohotkey, unzip, create near AutoHotkey64.exe file AutoHotkey64.ahk with this code:
#Requires AutoHotkey v2.0
#SingleInstance Force
#HotIf WinActive("ahk_exe Illustrator.exe")
!1:: aiScript("script1")
!2:: aiScript("script2")
aiScript(name) {
static app := "c:\Program Files\Adobe\Adobe Illustrator 2023\Support Files\Contents\Windows\Illustrator.exe"
, path := "c:\Users\user\Documents\aiScripts"
if FileExist(script := name)
or FileExist(script := path "\" name)
or FileExist(script := path "\" name ".jsx")
or FileExist(script := path "\" name ".js")
Run('"' app '" "' script '"',, "max")
}
run AutoHotkey64.exe
In Illustrator:
Alt-1 will run c:\Users\user\Documents\aiScripts\script1.jsx
Alt-2 — c:\Users\user\Documents\aiScripts\script2.jsx
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.