Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a project folder for some woodworking I will be doing over the next few weeks. Among the first items into this folder is a collection of ~25 emails containing photos and measurements of components on a similar project.

Is there a quick way to copy each of these emails to a specific folder rather than copy/paste'ing the contents of each one?

share|improve this question

If the photos and measurements are attachments you could use Automator to download the selected messages to a folder.

Edit: I wrote this AppleScript that will download the message and the attachments for all the selected emails in Mail. Make a new folder in your home directory called Emails and run the following code in AppleScript Editor.

NOTE: Make sure the Emails folder is empty. There may be problems if there are items in it already.

tell application "Mail"
    set the_messages to selection
    repeat with this_message in the_messages
        set message_subject to subject of this_message
        set message_body to content of this_message
        set download_path to "~/Emails/\"" & message_subject & "\""
        set save_path to (POSIX path of ("/Users/" & (short user name of (system info)) & "/Emails/" & message_subject & "/"))

        (* create a directory for the message and attachements *)
        do shell script "mkdir -p " & download_path

        (* save message body into a file *)
        do shell script "echo \"" & message_body & "\" > " & download_path & "/message.txt"

        (* save the attachments *)
        repeat with the_attachment in this_message's mail attachments
            save the_attachment in save_path & ":" & (name of the_attachment)
        end repeat
    end repeat
end tell
share|improve this answer
The measurements are in the email body with attached images. – Jack M. Aug 5 '12 at 21:15
@JackM. I updated my answer to include AppleScript that should do what you want. – Baylor Rae' Aug 5 '12 at 22:29
  1. Select all the emails you want copied by clicking on each one with the command key pressed.
  2. Drag one of the selected emails to the Finder icon in the Dock. A Finder window should open.
  3. Navigate to the folder where you want the emails copied by hovering your cursor over them. Leave the mouse button when you reach that folder.
  4. The emails should copy over as .eml files.
share|improve this answer
Unfortunately, it does not work with multiple emails in Mountain Lion. The emails simply snap back. – Jack M. Aug 6 '12 at 17:13
I just tested, and on my iMac they do, but on my new MBP, they don’t. Strange. – duci9y Aug 6 '12 at 17:45
I tested on my Mac Pro (Lion) and Macbook Pro (Mountain Lion). It looks like it SHOULD work, but it doesn't. – Jack M. Aug 6 '12 at 18:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.