11 Replies Latest reply on Aug 18, 2010 11:52 AM by chris.campbell

    AIR 2.0 in MAC application of NativeProcess - Error #3014 & Error #3019

    Mohit M Chavda



      I create a .dmg package for mac and installed project successfully in mac and run properly but when i used a nativeprocess meanse like i give path of open photoshop  like "/Applications/Adobe Photoshop CS5/Adobe Photoshop CS5.app" then file is exists but when i file given to native process object like nativeProcessStartupInfo.executable = file;  it gives error Error #3014 and if i gives any .dmg path then it gives Error #3019 ,

      my current code is :


                  private function openPhotoshop():void
                          var file:File = File.applicationDirectory;
                          file = file.resolvePath("/Applications/Adobe Photoshop CS5/Adobe Photoshop CS5.app");
                          var procarg:Vector.<String> = new Vector.<String>();
                           var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                          nativeProcessStartupInfo.executable = file;
                          nativeProcessStartupInfo.arguments = procarg;
                          process = new NativeProcess();               



      Can u please help me how can i open any application like photoshop in mac using NativeProcess ,