title: How to make After Effects quit after passing -r javascript from command line
body: <p>While passing JavaScript <code>myScript.jsx</code> to After Effects I want After Effects to exit on completion: </p>
  
  <p>"C:\Program Files\Adobe\Adobe After Effects CC\Support Files\AfterFX" -r   "C:\Workspaces\MyAEScripts\myScript.jsx" </p>
  
  <p>So the very last line in passed JavaScript myScript.jsx script is:</p>
  
  <pre><code>app.quit();
  </code></pre>
  
  <p>Regardless of this command After Effects just doesn't want to quit. I have tried to include an</p>
  
  <pre><code>app.exitAfterLaunchAndEval=true;
  </code></pre>
  
  <p>but that didn't help.</p>
  
  <p>If I would pass the same javaScript but using </p>
  
  <p><code>AfterEffects.exe -s "here is same javascript ending with; app.quit();"</code> </p>
  
  <p>it exits (quits) beautifully. </p>
  
  <p>I would stay with passing javascript (using <code>-r</code>). But there is a limit on how many characters can be used on a command line in Windows. 
  I need to be able to make After Effects to exit after it is finished running script passed with <code>-r c:/path/to/myJavaScript.jsx</code>.</p>