Skip to main content
Known Participant
May 4, 2023
Question

Issues running a set of scripts through Actions.

  • May 4, 2023
  • 1 reply
  • 352 views

I have a set of exporting scripts with different functions but using a lot of the same code modified for it's purpose. They start with a selected object or symbol in the source document but create a new document to position/resize and export or save.

The scripts run as intended directly but running them as an action causes unexpected results, mainly duplicating an extrta additional object into the new document or removing the original object.

I know it's hard to know without the source code but I'm aware that these are pretty large. Is there any testing I could do or things to look out for to remedy the incositency with running as an action?

Thanks in advance!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Sergey Osokin
Inspiring
May 4, 2023

Depending on how you run the script, Adobe Illustrator may not always provide the same script execution process.

1) Launch via the File menu.

2) Embedding the script into an action.

3) Drag and drop the script file onto an Illustrator window.

4) Drag and drop the script file to the top panel of the Illustrator window (not to be confused with method 3).
In your case, the bug with launching the script from an action may be related to the fact that the scripts create a new document in which the manipulation with the object takes place.