Results 1 to 4 of 4
  1. #1
    erv2
    Guest
    how to open eml file from terminal?
    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

  2. #2
    how to open eml file from terminal?
    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    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

  3. #3
    erv2
    Guest
    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?

  4. #4
    how to open eml file from terminal?
    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Please Help! How to open my jar file without a terminal!?
    By System Networks in forum OS X - Operating System
    Replies: 0
    Last Post: 09-25-2012, 04:13 AM
  2. Help! Terminal wont open!
    By tangledmonkey in forum OS X - Operating System
    Replies: 16
    Last Post: 07-11-2011, 04:00 PM
  3. Terminal Command to open most recently modified .Numbers file ???
    By RiDE in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 09-30-2010, 01:52 PM
  4. Terminal Won't Open
    By icefall5 in forum OS X - Operating System
    Replies: 7
    Last Post: 08-25-2010, 08:26 AM
  5. open a writeprotected file with aquamacs from terminal
    By juanp.contreras in forum OS X - Operating System
    Replies: 0
    Last Post: 05-22-2009, 07:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •