31
Jan
Export Apple Mail Messages and Notes to Text Files
Tags: Apple Mail, Applescript, Export, Messages, Notes, Text Files
I saw a Tweet from Scott Paterson, asking if there was an AppleScript to quickly batch export Notes from Apple Mail into individual text file.
Well Scott — If there wasn’t one before, there is now!
Features
- This AppleScript will export any selected Messages or Notes in Apple Mail as individual text files to a temporary folder on your Desktop (called “Temp Export Folder”);
- The script also attempts to remove any “illegal characters” from the file name as to avoid the process grinding to a complete halt!
- If you have Growl installed, the script should detect it and notify you when your export is completed.
Current Limitations and Open Issues
(Otherwise known as “Places Where You Could Help Out!”)
- I kept the output very basic — only spitting out the content of the note/message as the content of the text file. It *IS* possible to add more information from the messages and, if people are interested in that, let me know!
- Errors that will undoubtedly arise when you do something that I didn’t think of or test for!
How to Install and Use
First, select the messages or notes in Apple Mail.
Then just run the script… either:
- Manually;
- By using Snow Leopard’s “Keyboard Shortcuts”, or;
- By using FastScripts
Source Code and Download Link on the next page!
Export Apple Mail Messages and Notes to Text FilesPages: 1 2


One Response to “Export Apple Mail Messages and Notes to Text Files”
Twitter Comment
Thanks to @veritrope for knocking up AppleScript to export Notes to text files from Mail.app [link to post]
– Posted using Chat Catcher
Trackbacks/Pingbacks