title: Flex 4 & AIR 2 NativeProcess API: The NativeProcess could not be started
body: <p>I'm trying to build an application using AIR 2's new NativeProcess API's going from Brent's little video:</p>
  
  <p><a href="http://tv.adobe.com/watch/adc-presents/preview-command-line-integration-in-adobe-air-2" rel="nofollow noreferrer">http://tv.adobe.com/watch/adc-presents/preview-command-line-integration-in-adobe-air-2</a></p>
  
  <p>but I'm having some issues, namely I get an error every time I try to start my process.</p>
  
  <p>I am running OS X 10.5.8 and I want to run diskutil and get a list of all mounted volumes.</p>
  
  <p>Here is the code I am trying:</p>
  
  <pre><code>        private function unmountVolume():void
          {
              if(!this.deviceMounted){ return; }
  
              // OS X
              if (Capabilities.os.indexOf("Mac") == 0){
                  diskutil = new NativeProcess();
  
                  // TODO: should really add event listeners
                  // in case of error
  
                  diskutil.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onDiskutilOut);
  
                  var startupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                  startupInfo.executable = new File('/usr/sbin/diskutil');
  
                  var args:Vector.&lt;String&gt; = new Vector.&lt;String&gt;();
                  args.push("list");
                  //args.push(this.currentVolumeNativePath);
  
                  startupInfo.arguments = args;
                  diskutil.start(startupInfo);
              }
          }
  </code></pre>
  
  <p>which seems pretty straightforward and was based off of his grep example.</p>
  
  <p>Any ideas of what I'm doing wrong?</p>