Skip to main content
Participant
May 19, 2010
Question

Shortcut for js script with CS4 ?

  • May 19, 2010
  • 1 reply
  • 12785 views

hi all,

with my old version of illustrator (CS), i might affect a shortcut to a specific scipt .

Now i have CS4 version, and i  don't find similar possibility.

how can affect in this new version ?

Thanks for futur answer.

This topic has been closed for replies.

1 reply

artchrome
Inspiring
May 20, 2010

Hi Le Tom,

A know a way (may be there are anothers). So..

Put your script (javascript JSX) in illustrator/preset/your_language/Scripts/my_script.jsx (for MAC OS X)

Restart illustrator

Right now your script should be appear in illustrator's menu at : File -> Script -> my_script

So.. use Script Action palette to call my_script:

1- Make folder

2- Make layer Script Action and attribute a shortcut Key (F2 for exemple).

3- In Script Action menu (at top right corner) use Insert Command

4- write in dialogbox my_script (if your press the search button, it should be found, ** for me, first time illustrator crash, but after i have called/running manually my_script and remake this step and it's Ok**)

5 - Close/End Script Action

to try, push F2

Note: i have a French version of Illustrator CS4, so may be some commands/pathway could be named differently

Ciao, art.chrome

Le_tomAuthor
Participant
May 26, 2010

thanks,

i try, it works  a first time,

but when i stop  AI an restart him, the script is loaded without the command with specific script.

Have you same issue ?

Inspiring
June 13, 2010

what's about a system shortcut( with hot key ) to a .jsx (#target illustrator)?

Ok, nobody needs the confim window in this case, and the time needed to start the estk.

But it is a easy way.

chris


Much better, without estk and confirm-prompt:

a shell / batch-script to call Illustrator with the js-script as param.

for windows like this (.bat or .cmd):

@echo off 
"C:\...\Support Files\Contents\Windows\illustrator.exe" "C:\...\Vorgaben\Skripten\e_prompt.js"



store it wherever, create a link to it on the desktop, set link property's: hot-key and execute:minimized

okay, this works systemwide but it works, so who cares.

Chris