2 Replies Latest reply on Aug 8, 2014 3:18 AM by frax_

    launch illustrator with script from commandline

    frax_ Level 1

      Hi,

      (Illustrator CC 2014 on Windows 7)

       

      I had hotkeys defined using AutoHotkey to execute a script in illustrator by executing a commandline, and with the script as an argument. This used to work fine, but it has suddenly stopped working for me, maybe with one of the latest Illustrator CC updates...

       

      The command-line looks something like:

      "C:\Program\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows\Illustrator.exe" "c:\pathtoscript\myscript.jsx"

      Now Illustrator just sits there and nothing happens!

       

      Has anyone else seen this? Can someone confirm if this worked in previous versions and also confirm that it doesn't in the latest, please?

       

      Thanks!

        • 1. Re: launch illustrator with script from commandline
          CarlosCanto Adobe Community Professional & MVP

          you code does work with CS5, win7, I don't have CC to try

           

          I thought you could add a "special" switch like /run or /r and while either work, so does /taco or any other word...so, see if this helps

           

          "C:\Program\Adobe\Adobe Illustrator CC 2014\Support Files\Contents\Windows\Illustrator.exe" /run "c:\pathtoscript\myscript.jsx"


          **************************************************

          another option is to run the script via ESTK, you first need to add #target illustrator to the beginning of your script

           

          command line:

          "C:\Program Files (x86)\Adobe\Adobe Utilities - CS5.5\ExtendScript Toolkit CS5.5\ExtendScript Toolkit.exe"

          -run "c:\pathtoscript\myscript.jsx"

          • 2. Re: launch illustrator with script from commandline
            frax_ Level 1

            My first example works, if Illustrator is not open, so the syntax should be correct, but if it is already opened then it doesn't work for me, where it did work before!