4 Replies Latest reply: Jun 8, 2012 12:10 AM by JeffW. RSS

    launch executable from within extension

    JeffW. Community Member

      hi,

      is it possible to launch an executable from within extension, as it is in a regular desktop AIR app?

      Where you'd use code like this:

                    if(NativeProcess.isSupported)

                      {

                          var file:File = File.desktopDirectory;

                          file = file.resolvePath("myOtherExtension.zxp");

                         

                          var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();

                          nativeProcessStartupInfo.executable = file;

                          var process:NativeProcess = new NativeProcess();

                         

                          process.start(nativeProcessStartupInfo);

                         

                      }

       

      But in a desktop AIR app you'd need to add

      <supportedProfiles>extendedDesktop desktop</supportedProfiles>
      in the AIR descriptor file, which an extension obviously doesn't have.
      thanks,
      Jeff.