Skip to content

Instantly share code, notes, and snippets.

@rhwood
Created August 7, 2012 00:47
Show Gist options
  • Save rhwood/3280067 to your computer and use it in GitHub Desktop.
Save rhwood/3280067 to your computer and use it in GitHub Desktop.
Simple workflow to create a reminder from a message in Mail.app
on run {input, parameters}
tell application "Mail"
set theSelection to selection
set theMessage to first item of theSelection
set theSubject to subject of theMessage
set theDescription to "From : " & sender of theMessage & return & content of theMessage
set theMessageId to message id of theMessage
set theUrl to "message:%3C" & message id of theMessage & "%3E"
end tell
tell application "Reminders"
make reminder with properties {name:theSubject, body:theDescription}
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment