Skip to content

Instantly share code, notes, and snippets.

@sirtimbly
sirtimbly / gist:748351ed29c19d4cbf43
Created September 8, 2014 19:28
mail to evernote
-- Slightly modified version of Efficient Computing's AppleScript: http://efficientcomputing.commons.gc.cuny.edu/2012/03/17/copy-email-message-in-mail-app-to-evernote-applescript/
tell application "Mail"
--get selected messages
set theSelection to selection
--loop through all selected messages
repeat with theMessage in theSelection
--get information from message
set theMessageDate to the date received of theMessage
#!/usr/bin/python
import sys
import os, shutil
import subprocess
import os.path
from datetime import datetime
######################## Functions #########################
@sirtimbly
sirtimbly / gist:4608284
Created January 23, 2013 15:38
Customized the default Hit List Apple Mail script to work better for my needs. Truncating email subject to 24 characters and the sender to the first two words. Due date is now 2 days from today not from the date it was sent.
(*
The Hit List Mail Import (customized for shorter and concise subjects by TB)
Copyright © 2012 Potion Factory LLC.
Licensed under a Creative Commons Attribution 3.0 License: http://creativecommons.org/licenses/by/3.0/
To customize this script, copy it first to: