0 Replies Latest reply on Aug 24, 2016 7:51 PM by benjamint49828831

    Applescript to load a file, must suppress errors!

    benjamint49828831 Level 1

      I'm using Applescript to launch Illustrator and open a file with placed items that I know will be missing.  I need to suppress the warning message.  Essentially, I want to open an AI file, run a script, and close everything.

       

      I've tried this:

           app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

       

      and this:

           open "blah" without dialogs

       

      I've tried calling "close windows"

       

      I've tried telling Finder and System Events to click the Ignore button on the Adobe Illustrator window.

      I cannot embed the images, they need to be placed items.

       

      Here's my code:

       

          on run

          tell application "Adobe Illustrator"

               activate

               open "<<source>>"        

               open "<<script>>"       

               close current document

          end tell

          end run

       

      Help!  Thanks!