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

Batch script breaking after 100 documents

Engaged ,
Jul 03, 2024 Jul 03, 2024

Copy link to clipboard

Copied

Hi,
a batch script that I created for Illustrator will break after about 100 documents that have been processed. I am closing every document after processing and everything works fine if I process less than 100 documents at a time. What can cause this Illustrator behaviour and how can I avoid this? I am on an Mac M1 using OS Ventura and Illustrator version 28.5

TOPICS
Bug , Scripting

Views

135

Translate

Translate

Report

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
Engaged ,
Jul 04, 2024 Jul 04, 2024

Copy link to clipboard

Copied

AI crashes after opening and closing >100 docs? I remember dealing with that bug from more than a decade ago. (Using the AppleScript API, but the JSX API shares a lot of the plumbing.) Quitting and restarting AI after every 100 docs was the workaround; you can easily do that using AppleScript. (If your script is JSX, write an AppleScript helper app that performs the relaunch, then have your JSX run it via `File.execute`.)

Votes

Translate

Translate

Report

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
Engaged ,
Jul 05, 2024 Jul 05, 2024

Copy link to clipboard

Copied

Yes, AI is crashing. Thanks for the workaround. Anything I can do about memory management within the script itself to avoid the crash?  Thanks

Votes

Translate

Translate

Report

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
Engaged ,
Jul 05, 2024 Jul 05, 2024

Copy link to clipboard

Copied

LATEST

It seems to be the number of files opened and closed that triggers it. Nothing you can do about that. Implement the workaround, file a bug report if you want, and move along.

Votes

Translate

Translate

Report

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