4

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

What about in Flex 4?

rid00z
  • 1,566
  • 3
  • 16
  • 35

3 Answers3

3

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

=Ryan ryan@adobe.com

ryanstewart
  • 1,004
  • 10
  • 18
2

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

Community
  • 1
  • 1
Mike Buckbee
  • 6,793
  • 2
  • 33
  • 36
2

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
  • 891
  • 11
  • 22