Created
August 7, 2012 00:47
-
-
Save rhwood/3280067 to your computer and use it in GitHub Desktop.
Simple workflow to create a reminder from a message in Mail.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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