according to docs it depends on *where* application is run, e.g.:
Error — (Mac OS and Linux) No application was found that can open the file. (On Windows, attempting to open a file that has no associated application fails silently, without an exception.)
So I suppose it depends. So where is your application run (on what OS and what platform)?
Peter Blazejewicz wrote:
So where is your application run (on what OS and what platform)?
Indeed i was running it on Windows but i also tested it on ubuntu and no error was returned.
Do you know any work arounds for opening files that would give me more control than just calling the above function and hoping for the best?
I've heard people mention launching a native process but i don't really understand what these are and if it would be easier/better?
Yes, there are command line methods that allows to execute associated application via native process. In case of Windows it would be START command, see:
But you would have to write platform-specific handling and research on how to detect possible execution error via native process events.
File.openWithDefaultApplication(..) offers platform/features agnostic implementation so it would be best to stick with it.
What is file extension you're trying to launch? (let's concentrate on Windows for a moment),