Skip to main content
mohannegi
Known Participant
November 18, 2015
Answered

To assign keyboard shortcut for Play Current Action button in Illustrator?

  • November 18, 2015
  • 3 replies
  • 3038 views

Hello  friends...

I created Action workflow of various command and I added many stop command between my workflow so that i can perform such that that cannot automate by action. Now I also asign shortcut for Action. It run from start  and stop where i added stop. Then I manually change something and again i click on Play current selected button in Action panel.

I want to assign a shortcut key stroke for the same so that i get confidential my action workflow.  Is it possible? If it can be done by scripting then what should be script for the task?

Thanks

This topic has been closed for replies.
Correct answer Vinicius Baptista

---------->> Open a document

---------->> stop for manual change like ------- cmyk collor correction, trapping, color saperation etc.

---------->> run save as command

---------->> unlock all locked layers

---------->> embedd all unembedded like images.

---------->> run export command

---------->> stop for manually select objects in document

---------->> run Object >> rastaraze  menu command

---------->> copy width value of page [which come from (shift+o)]

---------->> paste width value in Move dialog box's horizontal value, vertical value should be 0.

---------->> copy move

---------->> select all in artwork

---------->> cut all into clipboard

---------->> close document


Ok, right now it is more clear!

So, I think all these tasks can be scriptable.

Maybe all people here can do some part of this script and at the end all tasks someone insert all in same script.

Below some tasks that I already have:

---------->> Open a document

var openFile = File.openDialog ();

app.open (openFile);

---------->> unlock all locked layers:

var myDoc = app.activeDocument;

var tLayers = myDoc.layers.length;

for (i=0; i< tLayers; i++){

    if (myDoc.layers.locked){

        myDoc.layers.locked = false;

    };

           

   

};

---------->> embedd all unembedded like images.

var linksLength = app.activeDocument.placedItems.length;

for ( var i = linksLength-1; i >= 0; i-- ) {

    app.activeDocument.placedItems.embed();

};

---------->> select all in artwork

app.activeDocument.selectObjectsOnActiveArtboard();

And I'll writing the others tasks if I can.

See you later,

-Vinícius

3 replies

Silly-V
Legend
November 18, 2015

Come to think of it, the answer I gave is now what you want really. If you want to play the currently selected action, I am not sure how this can be possible because I don't know if there's any way to tell the name of the currently selected action, or what the selection is in the Actions panel at all. Your one possible solution could be to have a platform-specific script which can have the ability to send a mouse click to a specific x,y coordinate on your screen. If this can be done, you could activate such a script with a hotkey to "click" on the location of the play-button in your actions panel. This would depend on this panel UI not changing in its position. I'm only slightly experienced in UI scripting, and can tell you that this is likely possible on Windows using AutoHotKey. Not sure about Mac, but there is probably ways to also do this.

Qwertyfly___
Legend
November 19, 2015

AppleScript can send keys.

Maybe the best option for this, if you want it to all be actions and not JS, would be to record as multiple actions.
where ever you have the stop added, end that action there, and record a new action that can have a different shortcut key.

mohannegi
mohannegiAuthor
Known Participant
November 19, 2015

Thanks for replying, but stop stations are too many. Approx 12 & may be more.

Vinicius Baptista
Inspiring
November 18, 2015

And if you want scripting this task, please tell us what you want the script do verbatim, step by step, maybe it's scriptable.

See you,

-Vinicius

mohannegi
mohannegiAuthor
Known Participant
November 19, 2015

Hi, Thanks for replying. I basic small scripting of play current solution using a keyboard shortcut. I am also taking help from Edit ->> keyboard shortcut, it also not showing me this command.

Silly-V
Legend
November 18, 2015

You can just use the Action Panel's UI to assign a function key, and with ability to add Shift and Command(ctrl on Windows) keys, you have an option to have 4 shortcut keys for every F key.

mohannegi
mohannegiAuthor
Known Participant
November 19, 2015

Hey, Thanks for replying. That what i did in first step. But I stay between and again i run action using my assigned function key. It play from start & this what i dont want.