Skip to main content
Known Participant
July 3, 2024
Question

combine script and action

  • July 3, 2024
  • 1 reply
  • 301 views

Hello,

is there a way to merge a script and an action?

 

I would like to add at the end of an action the script I created to close the Illustrator app (as it does not work in the action as the Close command).

 

Can I call a script in an action, and how (where do I find the action source files?), or do I have to make a script out of it all?

 

thank you.

This topic has been closed for replies.

1 reply

Kurt Gold
Community Expert
Community Expert
July 3, 2024

In the Actions palette menu, you can use the Insert Menu Item command to insert a script into an action.

AsterixxAuthor
Known Participant
July 3, 2024

thank you, yes this worked for the combination. Probably I had to restart.

But: here I have the same problem as before in another topic where I thought I could solve it with this topic :).

When I choose the menu item "Close" or now even the script (doing the same "close") then Illustrator says during the action "The Objekt Close is not available at the moment". Is this known?

AsterixxAuthor
Known Participant
July 3, 2024

ok I found out: when you put a close of the document before the close of the app in the action, it does not work. if you save in the action and then close directly the app, then it works. Ok!