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

Issues running a set of scripts through Actions.

Explorer ,
May 04, 2023 May 04, 2023

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!

TOPICS
Scripting
348
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
Adobe
Enthusiast ,
May 04, 2023 May 04, 2023
LATEST

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.

 

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