• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is it possible to have a keyboard shortcut run a script with CS6?

Contributor ,
Dec 17, 2014 Dec 17, 2014

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!!

TOPICS
Scripting

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Dec 18, 2014 Dec 18, 2014

I am doing this, using AutoHotkey (on Windows) with Illustrator CC

http://www.autohotkey.com/

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

Votes

Translate

Translate
Adobe
Mentor ,
Dec 17, 2014 Dec 17, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 17, 2014 Dec 17, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2014 Dec 17, 2014

Copy link to clipboard

Copied

Been that way since AI10 or ~12 years. They don't seem to care.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2014 Dec 17, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 18, 2014 Dec 18, 2014

Copy link to clipboard

Copied

I am doing this, using AutoHotkey (on Windows) with Illustrator CC

http://www.autohotkey.com/

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 18, 2014 Dec 18, 2014

Copy link to clipboard

Copied

I'm working on something very similar right now.

Written in AHK.

so win only sorry Macsters...

js.JPG

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 18, 2014 Dec 18, 2014

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 21, 2014 Dec 21, 2014

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 21, 2014 Dec 21, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 27, 2015 Jan 27, 2015

Copy link to clipboard

Copied

LATEST

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

Script Panel - Work in progress

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 21, 2014 Dec 21, 2014

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Dec 21, 2014 Dec 21, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines