Skip to main content
Inspiring
March 23, 2023
Question

Applescript "do script" (doScript in JS) crashes 2023, works fine in 2022

  • March 23, 2023
  • 0 replies
  • 160 views

I've seen the question asked elsewhere, but not for this specific version/issue. This script command works without issue for me in the 2022 version of Illustrator (26.1) but has crashed in the last two itterations of 2023 (27.0-27.3). 

 

The solution I've found (nest a "tell app Illustrator to activate" statement) wasn't necessary previously.

 

this is the script that works in 2022:

tell application "Adobe Illustrator"

   activate

   tell current document

      tell item 1 -- the item I want to run the action on

 

         -- this is the command that had to be added for 2023 ⍌⍌⍌:

         tell application "Adobe Illustrator" to activate

         -- this is the command that had to be added for 2023 ⍓⍓⍓:

 

         do script "scriptName" from "ActionSet"

       end tell -- item

   end tell -- document

 

There is already an "activate" statement within a "tell illustrator" block. Addressing objects in a document, or the document itself, shouldn't cause "do script" to crash the application. More to the point, this is new behavior from the last version. (I've seen similar posts going back to 2018, but this was working fine for me before now.)

This topic has been closed for replies.