title: How to quit Illustrator and ExtendScript Toolkit from a script?
body: <p>I use a .jsx script to open an Illustrator file, modify it, then save and close it.
  The script is called from another program.
  After the script execution, I need to quit both Illustrator and ExtendScript Toolkit softwares. I tried the following code:</p>
  
  <pre><code>    [...]
      document.close();
      app.quit(); // quitting Ai
  </code></pre>
  
  <p>Illustrator exits well after the script execution but ExtendScript Toolkit application is still opened, even if the script is terminated.</p>
  
  <p>I call my script from a Windows command:</p>
  
  <pre><code>"C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Support Files\Contents\Windows\Illustrator.exe" "C:\Users\user\Documents\Adobe Scripts\script.jsx"
  </code></pre>
  
  <p>So, does anyone know how to quit the ExtendScript Toolkit window from the script (or anywhere else).</p>
  
  <p>Once the script is terminated, I could see in the data explorer window, I see an app object named 'ExtendScript Toolkit' with a .quit() function, but I can't call it from the script because while executing 'app' is still Illustrator.</p>