E
erv2
Guest
i am writing a java app, which needs to open .eml files in from the
local file system using Runtime.getRuntime.exec()
under windows, the only thing i need to do is to type in the following
in the terminal:
start foo.eml
under Mac OS X, there's a program called "open" which does a simular
job as "start" in windows, i can do " open foo.pdf ", "open foo.jpg"
which will fire up the registered program to handle the file. but "
open foo.eml" wont work, here is what happened:
2006-02-17 11:37:17.067 open[313] LSOpenFromURLSpec() returned -10814 for application (null) urls file://localhost/tmp/TempEmailFile62117.eml
"open" seems not to understand that file format. i downloaded Thunderbird for Mac, but i have no idea how to run it from terminal and give it the foo.eml" as the argument.
i am quite new to Mac OS as well, could anyone give me some hints?
thank you
local file system using Runtime.getRuntime.exec()
under windows, the only thing i need to do is to type in the following
in the terminal:
start foo.eml
under Mac OS X, there's a program called "open" which does a simular
job as "start" in windows, i can do " open foo.pdf ", "open foo.jpg"
which will fire up the registered program to handle the file. but "
open foo.eml" wont work, here is what happened:
2006-02-17 11:37:17.067 open[313] LSOpenFromURLSpec() returned -10814 for application (null) urls file://localhost/tmp/TempEmailFile62117.eml
"open" seems not to understand that file format. i downloaded Thunderbird for Mac, but i have no idea how to run it from terminal and give it the foo.eml" as the argument.
i am quite new to Mac OS as well, could anyone give me some hints?
thank you