I know that you can open a specific file with it's default application using File.openWithDefaultApplication in AIR.
Is there a way I can determine the user's default application for a given file type, so I can open the application without opening a specific file? I simply want to be able to start up an application based upon file type. For instance, I want to start MS Word on Windows. I know that the user will have an application to open .doc or .docx files, but that the actual EXE for it will be in different locations depending upon the actual version s/he has installed. I don't want to open a specific file, even an empty one.
If you put the file types you are interested in into your application descriptor as a file type, you can use the NativeApplication getDefaultApplication() method to find the application.
The downside is that if the user doesn't have a program registered for that extension, your application will be registered as the default automatically. If this isn't desirable, you could unregister at runtime using removeAsDefaultApplication().
Excellent. Thank you, Joe. I had been looking in NativeProcess. This is a little roundabout, but will work well for us.