Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adobe AIR to execute program

I would like to press a button from an Adobe AIR application and execute some installed program. For example, I would have a button named "Start Winamp". When this is pressed it should start Winamp.exe directly...I don't want some command line thing executed, I only want an exe to start. Or...is it the same thing ? Please, let me know if this is possible.

Thank you.

like image 244
Manny Calavera Avatar asked Mar 23 '09 02:03

Manny Calavera


People also ask

How do I run a program on Adobe AIR?

Find the file you want to open and double-click it. It should open automatically. If not, right-click on the file, go to Choose Program and select Adobe AIR. Click Open.

What programs use Adobe AIR?

Notable applications built with Adobe AIR include eBay Desktop, Pandora One desktop, TweetDeck, the former Adobe Media Player, Angry Birds, and Machinarium, among other multimedia and task management applications.

What is Adobe AIR and why do I need it?

Adobe® AIR® is a multi-operating system, multi-screen runtime that allows you to leverage your web development skills to build and deploy rich Internet applications (RIAs) to the desktop and mobile devices.


1 Answers

With AIR 2.0 you now can:

if(NativeProcess.isSupported) {     var file:File = File.desktopDirectory;     file = file.resolvePath("StyleLookupold.exe");      var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();     nativeProcessStartupInfo.executable = file;     var process:NativeProcess = new NativeProcess();      process.start(nativeProcessStartupInfo);  } 

You also need to add this to your descriptor file.

<supportedProfiles>extendedDesktop</supportedProfiles>  
like image 98
JD Isaacks Avatar answered Sep 29 '22 05:09

JD Isaacks