Follow Us

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message

Archiving email messages as text files

Here are a few options on how to archive your email messages as text files

Article comments

Reader Lloyd Hanson would like to more easily move text between applications. He writes:

I have a number of email messages I have written that I need to export, individually, into a word processor document (Microsoft Word or Pages). Short of using cut and paste, is there a method or script that will do this automatically?

There are a few options for doing this. One of the easiest is to open a new word processing document, move to Mail, select the text that you'd like to copy in an email message, and drag the text to the open word processing document.


While hanging out around our virtual water cooler I tossed this question to my colleague Dan Frakes who suggested that another avenue could be a multi-clipboard utility. Using that utility, you'd copy-copy-copy-copy the messages you want into the multi-entry clipboard, move to your word processor, and paste-paste-paste-paste from the clipboard into your word processing document.


If you'd like to automate the process, Snow Leopard's Automator can do that. We'll start with a Mail-to-Pages workflow.

Launch Automator and, in the Template sheet that appears, select Service and click Choose. In the window that appears add these actions: Copy to Clipboard and Launch Application. Configure the top of the window to read Service Receives Selected Text in Mail. In the Launch Application action choose Pages from the pop-up menu. (If you don't see a Pages listing choose Other at the bottom of the menu and navigate to the Pages application, which is likely in the iWork '09 folder in your Applications folder).

Launch Pages and open a new blank document. Return to Automator and click the Record button. An Automator Record window will appear, complete with a Stop Recording button. Return to Pages and press the Return key twice. Click the Stop Recording button. A Watch Me Do action will appear in your Automator workflow. Delete everything in the action except the Type command.

Click Automator's Record button yet again, switch to Pages, and press Command-V. Click the Stop Recording button and return to your Automator workflow. In the new Watch Me Do action delete everything except Press Command-V. In the Timeout area of this action enter 5 seconds. Save your workflow and enter a name for it when prompted.

What did we do? The first action asks Automator to copy the selected text in the email message. The second action switches to Pages. (Even though the action is called Launch Application, it will switch to an application if that application is already open.) The third action inserts two blank lines, necessary when you want to easily separate one bit of pasted text from the next bit. And the last action pastes the text from the Clipboard into the Pages document (Automator doesn't include a Paste Text action of its own, which is why we had to use Watch Me Do).

If you like, launch System Preferences, select the Keyboard preference, click Keyboard Shortcuts, choose Services, locate the service you just created (it will appear under the Text heading), click to the right of the service, and assign a keyboard shortcut to it. This makes the service easier to invoke later. You can also choose it from the Services menu if you want.

If you prefer a Mail-to-Word workflow, you can skip the Watch Me Do actions. Begin this workflow similarly, with the Copy to Clipboard and Launch Application actions. In the second action make Microsoft Word the application to launch. Now add the Paste Clipboard Content into Word Documents action. From the Location pop-up within this action you can decide how you want the clipboard contents to be pasted, Top of Document, Bottom of Document or Bottom of Document in New Section, for example. I like this New Section option as it separates the text snippets, making them easier to find.

Again, for the workflow to work you'll need to have a Word document open. And, also again, you'll find the service easier to implement if you assign a keyboard shortcut to it.


More from Techworld

More relevant IT news


Send to a friend

Email this article to a friend or colleague:

PLEASE NOTE: Your name is used only to let the recipient know who sent the story, and in case of transmission error. Both your name and the recipient's name and address will not be used for any other purpose.

Techworld White Papers

Choose – and Choose Wisely – the Right MSP for Your SMB

End users need a technology partner that provides transparency, enables productivity, delivers...

Download Whitepaper

10 Effective Habits of Indispensable IT Departments

It’s no secret that responsibilities are growing while budgets continue to shrink. Download this...

Download Whitepaper

Gartner Magic Quadrant for Enterprise Information Archiving

Enterprise information archiving is contributing to organisational needs for e-discovery and...

Download Whitepaper

Advancing the state of virtualised backups

Dell Software’s vRanger is a veteran of the virtualisation specific backup market. It was the...

Download Whitepaper

Techworld UK - Technology - Business

Innovation, productivity, agility and profit

Watch this on demand webinar which explores IT innovation, managed print services and business agility.

Techworld Mobile Site

Access Techworld's content on the move

Get the latest news, product reviews and downloads on your mobile device with Techworld's mobile site.

Find out more...

From Wow to How : Making mobile and cloud work for you

On demand Biztech Briefing - Learn how to effectively deliver mobile work styles and cloud services together.

Watch now...

Site Map

* *