How can I associate a file type in mac within Java code?
<p>How can I associate a file type like .vlan in mac within java code?</p>

<pre><code>Runtime.getRuntime().exec("defaults write com.apple.LaunchServices LSHandlers -array-add 
\"&lt;dict&gt;&lt;key&gt;LSHandlerContentTag&lt;/key&gt;
&lt;string&gt;.vlan&lt;/string&gt;&lt;key&gt;LSHandlerContentTagClass&lt;/key&gt;
&lt;string&gt;public.filename-extension&lt;/string&gt;&lt;key&gt;LSHandlerRoleAll&lt;/key&gt;
&lt;string&gt;org.category.program&lt;/string&gt;&lt;/dict&gt;\"");
</code></pre>
