Skip to content

Instantly share code, notes, and snippets.

@pdxmph
Created November 29, 2011 17:07
Show Gist options
  • Save pdxmph/1405554 to your computer and use it in GitHub Desktop.
Save pdxmph/1405554 to your computer and use it in GitHub Desktop.
Convert Mac Mail Notes to Evernote (Applescript)
tell application "Mail"
set theMessages to every message of the mailbox "NoteMigrate"
repeat with thisMessage in theMessages
set myTitle to the subject of thisMessage
set myText to the content of thisMessage
set myCreateDate to the date sent of thisMessage
tell application "Evernote"
create note with text myText¬
title myTitle ¬
notebook "Imported Notes" ¬
tags "imported_note" ¬
created myCreateDate
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment