Open file with Adobe Captivate from command line
<p>I am attempting to open an XML file with Adobe Captivate in my script using <code>os.system()</code>. Here is my code:</p>

<p><code>os.system("open /Applications/Adobe\ Captivate\ 9/Adobe\ Captivate.app/ \"flashcards_template_changed.xml\"")</code></p>

<p>It works fine the issue is with the opening screen on Adobe Captivate. When the program is run one of those 'New Document' windows pops up and asks you whether you want to start a new document, what kind of document, etc. Similar to Microsoft Word.</p>

<p>I was wondering if anyone had any experience bypassing this menu so the file would open. When I open Adobe Captivate and open my XML file it opens perfectly so I know it is in the right format.</p>

<p>Any help would be great! Thanks!   </p>

<p>If Adobe Captivate is registered as the default application for handling XML files, then you can leave out the application name altogether:</p>

<pre><code>os.system("open flashcards_template_changed.xml")
</code></pre>

<p>Otherwise, specify the application with the <code>-a</code> flag:</p>

<pre><code>os.system("open -a captivate flashcards_template_changed.xml")
</code></pre>

<p>I don't know for certain that "captivate" is a recognized name for Adobe Captivate; I'm just guessing, and I don't have access to a suitable Mac to find out.  If that doesn't work, you could probably use something very similar to what you had in your post:</p>

<pre><code>os.system("open -a '/Applications/Adobe Captivate 9/Adobe Captivate.app' flashcards_template_changed.xml")
</code></pre>

python xml operating-system adobe