Copy link to clipboard
Copied
I see there is an option for it to go to "other scripts" with a keyboard shortcut, but that really doesn't help much. I want it to play a specific script that is already loaded. Thanks in advance!!
I am doing this, using AutoHotkey (on Windows) with Illustrator CC
That way I can bind hotkeys that only are active when Illustrator is running:
#IfWinActive, ahk_class illustrator
F11::
Run,cmd.exe /c start /max "" "[full path to]\Illustrator.exe" "[full path to my script.jsx]",,Min
return
Copy link to clipboard
Copied
I have never tried this but you might attempt to use the Actions panel/palette to record an Action and run that everytime. It may not be a keyboard shortcut but it would only require one mouse click every time you run the action of your script.
Copy link to clipboard
Copied
Thanks markerline,
Yea I have made a few actions as scripts by Inserting a menu item and it does work although I have to re load my actions for some reason it is glitchy.
Copy link to clipboard
Copied
Been that way since AI10 or ~12 years. They don't seem to care.
Copy link to clipboard
Copied
there's no way as far as I know, but you're halfway there using Actions, the next step is to Save your actions then re-load them on restart...still not perfect but a little closer.
Copy link to clipboard
Copied
I am doing this, using AutoHotkey (on Windows) with Illustrator CC
That way I can bind hotkeys that only are active when Illustrator is running:
#IfWinActive, ahk_class illustrator
F11::
Run,cmd.exe /c start /max "" "[full path to]\Illustrator.exe" "[full path to my script.jsx]",,Min
return
Copy link to clipboard
Copied
I'm working on something very similar right now.
Written in AHK.
so win only sorry Macsters...
Scans a folder of your scripts and displays them in a panel (see above)
you can click any one like a button.
or you can eg. 3 enter.
Panel can be dragged to where ever you want it.
Still playing with the finishing touches and will post the finished result once I am done.
That will be next year some time, as I am finished work for the year.
Run, % "[Full path to]\Illustrator.exe " Scriptlocation JSName
this is my AHK line to run the script.
any reason for the cmd.exe section
Copy link to clipboard
Copied
Scans a folder of your scripts and displays them in a panel (see above)
you can click any one like a button.
or you can eg. 3 enter.
Panel can be dragged to where ever you want it
Sounds very cool, great idea - looking forward to see the result!
any reason for the cmd.exe section
Eh... I am sure there was some really good reason for it at one point - I wouldn't have put it there otherwise, but I don't remember now, and I don't know if it is still valid. Or just lazy copy/paste from somewhere else, where it was valid. Seems a bit odd that I have specified the window to be both minimized and maximized on the same line...
Copy link to clipboard
Copied
That is gonna be awesome for a pack of scripts imagecollection!
Any plans on how you will handle the folders inside scripts?
Copy link to clipboard
Copied
My plan is to allow user to designate a folder containing scripts.
this does not need to be the standard scripts folder.
i had not thought about sub folders. But I will now.
i could have it scan sub folders and display in group boxes.
it shoud be able to handle many scripts but the display of too many could get ugly.
i'lol try to set up folders to expand like it the actions panel.
i Will try to set up a thread for this so I can keep track of ideas ect.. From fellow illustrators.
Copy link to clipboard
Copied
Hi guys,
Here is the thread I have started for the script panel I am working on...
Still a work in progress but would love your feedback and suggestions
Copy link to clipboard
Copied
Thanks for everyone's input! Yea reloading actions every time you restart Illustrator is a bummer so I was trying to see if there was an alternative. Plus I have a script that runs an action, and I tried making that an action, and Illustrator did not like that one bit haha. Thanks frax, that seems like an alternative solution that may work for me. I will give autohotkeys a try when I have time. I appreciate everyone's help!
Copy link to clipboard
Copied
I'm glad I helped to some degree even though my suggestion wasn't the best. It only now occurred to me that this is the Scripting forum. Since I don't have that much experience Scripting I probably had no business getting involved. But once subscribed and seeing other responses I have also learned some new things I did not know before. One of these days I'll get better at JavaScript for AI, I hope.