New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

how to open eml file from terminal?


Post Reply New Thread Subscribe

 
Thread Tools
erv2
Guest
 
Posts: n/a

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
QUOTE Thanks
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
just right click on the eml file then do an open with, this will set which program you want the eml file to open with



Apple, think different
QUOTE Thanks
erv2
Guest
 
Posts: n/a

i m sorry i m a newbie.

open foo.eml didn't work because eml haven't been registered with any application. after i registered with thunderbird, "open foo.eml" fires up thunderbird.

but the problem is using the "open foo.eml" only fires up thunderbird, and bring up a "new mail" screen, not actually open the foo.eml file.

i tried to registered with Mail, Mail brings up a "new mail" screen and put the foo.eml into attachment, which is not i would expect it to do.

any tips?
QUOTE Thanks
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
is an eml an email message from outlook?

if so this might help as i cant find anything else to help you with your problem

http://www.versiontracker.com/dyn/moreinfo/macosx/29050



Apple, think different
QUOTE Thanks

Post Reply New Thread Subscribe


« OpenGL Shader Builder on intel iMac issues | Can I use Windows apps on an Intel Core Duo iMac? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 08:13 PM
Show Item Info inflexion OS X - Operating System 15 10-24-2005 11:34 PM
.BIN file won't open andyholmes1 OS X - Operating System 3 05-05-2005 06:02 PM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 02:23 PM
How to limit available programs to open a file when the file is highlighted? GT5.0 OS X - Operating System 10 02-10-2005 10:31 PM

All times are GMT -4. The time now is 09:33 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?