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

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

Contributor ,
Dec 22, 2022 Dec 22, 2022

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.

 

AntonioPachecoHN_0-1671746480072.pngexpand image

 

TOPICS
Bug , Scripting , SDK , Tools
597
Translate
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

Community Expert , Dec 22, 2022 Dec 22, 2022
Translate
Adobe
Community Expert ,
Dec 22, 2022 Dec 22, 2022

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

Translate
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 22, 2022 Dec 22, 2022

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

Translate
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 22, 2022 Dec 22, 2022
Translate
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 23, 2022 Dec 23, 2022

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

Translate
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 23, 2022 Dec 23, 2022
LATEST

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

Translate
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