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


hello,

 

i create .dmg package mac , installed project in mac , run when used nativeprocess meanse give path of open photoshop  "/applications/adobe photoshop cs5/adobe photoshop cs5.app" file exists when file given native process object nativeprocessstartupinfo.executable = file;  gives error error #3014 , if gives .dmg path gives error #3019 ,


my current code :

 

            private function openphotoshop():void
            {
                if(nativeprocess.issupported)
                {
                    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;
                    procarg.push("start");
                    nativeprocessstartupinfo.arguments = procarg;
                    process = new nativeprocess();               
                    process.start(nativeprocessstartupinfo);                   
                }
            }

 

 

can u please me how can open application photoshop in mac using nativeprocess ,

 

thanks,

mohit.

i think need drill little deeper folder structure - ".app"s on mac bundles (fancy folders) finder knows treat file.

 

try modifying executable path this:

 

file = file.resolvepath("/applications/adobe photoshop cs5/adobe photoshop cs5.app/contents/macos/adobe photoshop cs5");

hope helps.

 

chris thilgen

air engineering



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support