I wanted to do the same on Mac OS X, it seems the only api for such a
thing is the Carbon one: "Launch services"
I made a command line standalone that facilitates it with filepaths. I
can send it to you if you want it (no source code).
the usage is:
-default
gives back the standard application
-all
gives back all the apps that claim to open up the file.
to use it from rev you'd do this:
shell("test -all /Users/Test/Desktop/test.rev")
On Aug 18 2006, at 18:14, Joel Guillod wrote:
From a file path or a file extension or a MIME type, how can we get a
list of the applications which can open the corresponding file?
The "launch document " can open the corresponding
application like a double-click in the Finder/Windows Explorer. But
has anyone some tricks to get a list of compatible application for a
file or MIME: Applescript (on MacOSX) or shell commands (MacOSX,
Windows, Linux)?
Thanks for each appropriate reply!
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution