Skip to main content
Participant
Feb 19, 2021 7:47 AM UTC
Answered

Run Script from Action

Hi!

I need to set a hotkey for running my script. It's very simple in Indesign.
It isn't available in Photoshop, but I use a simple action for it and then set hotkey on it.

But in Illustrator (version 24.3) when i tried to record action for run my script it doesn't simply record a command "run script ..." but it recorded a script's content with path to files. Itmust be very useful for some reasons but i doesn't ned it this. Can I switch off this feature?

I alsa can't use a "insert menu item" method bcause I can't put my script to menu without admin's rules.

Disposition_Dev
Disposition_DevCorrect answer
Legend
Feb 19, 2021 6:55 PM UTC

When you're recording your action, go to the top right corner of the actions panel and click the menu button. Then click "Insert Menu Item". 

 

A new dialog will open up.. 

Navigate to the File > Scripts menu and select the script you want to assign to the action.

Click ok to close the Insert Menu Item dialog

stop recording action.

 

Enjoy

 

10 replies

Disposition_Dev
Disposition_DevCorrect answer
Legend
Feb 19, 2021 6:55 PM UTC

When you're recording your action, go to the top right corner of the actions panel and click the menu button. Then click "Insert Menu Item". 

 

A new dialog will open up.. 

Navigate to the File > Scripts menu and select the script you want to assign to the action.

Click ok to close the Insert Menu Item dialog

stop recording action.

 

Enjoy

 

Translate
Inspiring
Aug 13, 2022 1:46 PM UTC

This worked for me!! Thank you!

Translate
Silly-V
Legend
Feb 19, 2021 2:49 PM UTC

What do you mean by this?

But in Illustrator (version 24.3) when i tried to record action for run my script it doesn't simply record a command "run script ..." but it recorded a script's content with path to files


When I try to record a script run into an action and try File > Scripts, it just shows the file dialog box, where are you getting the script's content, etc?

Translate
Charu Rajput
Community Expert
Community Expert
Feb 19, 2021 11:55 AM UTC

It may possible to try another way, place your script where you have access. And from File --> Scripts --> Other Script to exceute it.

Translate
Best regards
mixxeeffAuthor
Participant
Feb 19, 2021 12:27 PM UTC

Thank you. We use this way now. But for faster access we would like to call it by pressing hotkey. Like we do it in AI and INDD.

 

Translate
mixxeeffAuthor
Participant
Feb 19, 2021 12:27 PM UTC

Sorry for mistake, like in PS and INDD

Translate
Ton Frederiks
Community Expert
Community Expert
Feb 19, 2021 9:24 AM UTC

That's the way to go, get admin access and put it in the scripts folder.

Translate
mixxeeffAuthor
Participant
Feb 19, 2021 9:44 AM UTC

Unfortunately it seems impossible. Is there any another way to run script from action?

Translate