How to execute an InDesign extendscript from command line?
<p>I need to execute a .jsx script for InDesign from command line (Windows).</p>

<p>For Illustrator, it works easily with the following command:</p>

<pre><code>"C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Support Files\Contents\Windows\Illustrator.exe" "...\myscript.jsx"
</code></pre>

<p>Both applications Illustrator and ExtendScript Toolkit CS6 open then the script is automatically launched.</p>

<p>When I try the same for InDesign, it doesn't work (InDesign says 'Unable to open myscript.jsx ...'). </p>

<p>I also tried to launch ExtendScript Toolkit from command line as below:</p>

<pre><code>"C:\Program Files (x86)\Adobe\Adobe Utilities - CS6\ExtendScript Toolkit CS6\ExtendScript Toolkit.exe" "...\myscript.jsx"
</code></pre>

<p>The result is ExtendScript Toolkit application is opened with the script loaded, but nothing is executed.</p>

<p>Does anyone know how to launch the script? Is there a <code>-run</code> or <code>-cmd</code> argument to add?</p>