Launch application with arguments with NSWorkspace not working
<p>I would like to open FileZilla (ftp application) with an argument.</p>

<p>It is working with <strong>NSTask</strong> (aka. Process):</p>

<pre><code>let process:Process = Process()
process.launchPath = appURL.path
process.arguments = ["ftp://1.2.3.4"]
process.launch()
</code></pre>

<p>It is not working with <strong>NSWorkspace</strong>:</p>

<pre><code>try! NSWorkspace.shared().launchApplication(
   at: appURL,
   options: .default,
   configuration: [NSWorkspaceLaunchConfigurationArguments:["ftp://1.2.3.4"]]
)
</code></pre>

<p>With <em>not working</em> I mean, that FileZilla launches, but the argument is not passed over.</p>

<p>The API seems simple, but I can not figure out what I am doing wrong here.</p>

<p>The reason why I want to use NSWorkspace is, that NSTask the application will not launch in foreground.</p>