Skip to main content
Inspiring
December 22, 2022
Answered

How to run an action that contains a script, from another script / UI

  • December 22, 2022
  • 2 replies
  • 726 views

Hi community, hope you're doing great, wish you great holidays.

Let me try to explain myself, I am trying to make an UI to run an action in AI, all i do is create a new action, record, go to menu -> insert menu item -> selectd e script I want -> stop recording

I am using the code line: app.doScript ("name of action", "set of actions");

But it is not working, it says something like : "The action 'name' is not currently available", but if i record an action like move, copy, paste, trasnform, hide, unhide, that one runs perfectly, all good except for the scripts I use in the action from "insert menu item".

 

can anybody help me please? Thanks.

 

 

This topic has been closed for replies.

2 replies

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
December 23, 2022
Inspiring
December 23, 2022

Thank you so much, Carlos! Wish you happy holidays!

CarlosCanto
Community Expert
Community Expert
December 23, 2022

you're welcome Antonio, happy holidays for you as well!

pixxxelschubser
Community Expert
Community Expert
December 22, 2022

One guess: Are two spaces really required in the name of the set "New  Actions"?

Inspiring
December 23, 2022

No, not at all, but believe me it's not that, i also tried with an underscore