Auto Creating Reminders from Email Messages

In my constant state of trying to make things a bit more efficient for myself. (I’m a big believer in automation, ask anyone that has ever worked with me.) We have computers! Make the computers do work instead of us manually doing things on the computer.  

I wanted to find a way to auto-create a reminder from an email. I assume you can figure out how to create a rule to match an email in Mail.app, but one of the actions you can take on a mail rule is “Run AppleScript”.
This AppleScript, given the email match, will create a reminder that links back to the email for you:

using terms from application “Mail”

    on perform mail action with messages selectedMessages

        try

            log “Starting script execution”

            tell application “Reminders”

                repeat with theMessage in selectedMessages

                    try

                        tell application “Mail”

                            — Fetch subject and message ID

                            set emailSubject to subject of theMessage

                            set messageID to message id of theMessage

                            

                            — Mark email as read

Content was cut in order to protect the source.Please visit the source for the rest of the article.

This article has been indexed from Security Boulevard

Read the original article: