Apple Script to Move Emails

Discussion in 'Mac Programming' started by King Luis, Jan 25, 2010.

  1. King Luis macrumors 6502

    Joined:
    Jul 3, 2008
    #1
    So I bought my parents a mac mini not to long ago and i have saved all the emails (.eml files) in a folder. i found out how to transfer them one by one by clicking on message then move to...

    i want to create a script that will go through all 437 emails and import each one. the only problem is that i cannot figure out how to get the script to move to the next email in the list.

    any ideas?

    in short.

    move emails in documents/emails folder to mail app inbox. files are in .eml format.
     
  2. Detrius macrumors 68000

    Joined:
    Sep 10, 2008
    Location:
    Asheville, NC
    #2
    Have you tried just selecting them all and only doing it once?

    More specifically, what exactly are you TRYING to do? What's the purpose of moving the emails one-by-one?
     
  3. King Luis thread starter macrumors 6502

    Joined:
    Jul 3, 2008
    #3
    basically when you open the email, you click on message then say move to and i choose my ISP mailbox. what that does is it imports that message to my mail application.

    i want to move all my emails that i have backed up from my parents old pc in the mail application so they can easily go back and find emails.

    easy way to describe it:

    save an email on your desktop as a .eml file.

    close all apps.

    open the .eml file and on the top bar click on messages then move to then your mailbox name.

    after you do that it imports that eml file to your mail application.
     
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #4
    Importing emails is a lot simpler if it's done on a whole mailbox or series of emails. I don't know if you can get the old email program to do it, but exporting or saving to mbox format would making importing to Mail.app trivial. There's a menu item for that: Import Mailboxes... under the File menu. It can even import from another Mail.app mailbox.
     
  5. King Luis thread starter macrumors 6502

    Joined:
    Jul 3, 2008
    #5
    wouldn't that require entourage or something like that? i don't have that program.

    anyone else?
     

Share This Page