views:

284

answers:

3

In adobe air, is there anyway to get OS open a file, in their native applications?

What about in Flex 4?

+1  A: 

You might want to checkout StackOverflow Question 265265 - Can Adobe AIR applications execute processes on the local client machine?

Mike Buckbee
+2  A: 

In AIR 1.5 there isn't any way to do it. But stay tuned ;)

=Ryan [email protected]

ryanstewart
You tease! Just tell us before MAX!
Gregor Kiddie
A: 

You may be able to use something like this:

var file:File = File.desktopDirectory.resolvePath('Yodl_RBI.ppt.zip');
navigateToURL(new URLRequest(file.url));

It will normally open the asset in a browser window though, but for images and stuff that kind of works.

However if you point it to a folder it will typically open the folder containing the item, which is half way there...

robmcm