We are constantly sending emails (over 100 billion every day by some estimates). We regularly distribute information via email, and can send the same basic message monthly, weekly, or daily with little variation. As long as the email has to be sent, it’s a great candidate for automating.
I recently helped my wife send a weekly email more efficiently. Each week, she sends out the list of hymns we’ll be singing for the next few Sundays. She had a good process in place, but she was always worried that she was going to forget to add the BCC recipients (and it’s not easy to check afterwards). I helped her automate her process a little so she would have one less thing to worry about.
There are multiple ways you can automate creating an email draft and each has its own strengths and weaknesses. Since she uses the built-in Mail.app and wants something that would be easy for her to maintain, we created an Automator application.
Here’s how to create an Automator action that you can double-click to create a draft message in Mail.app. If you drop files on it, they will be attached to the message.
Creating the Application
To create an email template in Automator:
- Launch Automator and create a new document.
- Choose Application for the type of workflow.
- From the Library, select
Mail > New Mail Messageand drag it into the workflow.
- Fill out the message template. We’re not going to add a
Send Outgoing Messagesstep, so what you put in the template isn’t final; it’s just a starting point for the message. You can edit the message before you send it.
Click Run to try it out. Mail will launch and bring up a new message draft that’s already filled out. Instead of starting from scratch each time, you can just tweak the message and go!
Putting the Date in the Subject Line
The workflow would work like it is, but let’s take it one step futher by putting the correct date in the subject line.
If your workflow just needs today’s date, you’re in luck: the
Date & Time > Today’s Date variable lets you insert today’s date without the scripting. Since I want to use this Sunday’s date, I’m going to use
Utilities > Shell Script, which lets you insert the output of any Unix command.
- Switch the Library from viewing Actions to Variables.
- Drag a
Utilities > Shell Scriptvariable token into the subject field.
- Edit the subject to accommodate the token.
- Right-click on the token and select
Edit…to configure the script. You can use any script here that writes to stdout. I’m using the
datecommand to get the date of the upcoming Sunday.
Try running your script again. The draft should be the same, except the subject line will have Sunday’s date on it. One less thing to worry about when you’re sending out the email.
Unfortunately, you can only use variables in the subject line. If you want to dynamically determine the recipients or message body, it will probably be easier to do the whole thing in AppleScript instead of Automator.
As with any time you automate your workflow, wait until the workflow is stabilized before you try to automate it. Otherwise, you’re either going to optimize for the wrong thing or automate work you don’t need to be doing anyway. The best way to reduce the time you spend on a task is elimination, not automation.
Also, be sure the time and energy you spend automating is time and energy you’ll save doing the task. It’s easy to get caught up in automation and optimization and pretty soon feature creep starts to take over. This chart from XKCD is a handy reference.
What tasks could you automate (or eliminate) to save yourself time and energy? What could you do with the time you save? Share your thoughts in the comments below!
Question: What tasks could you automate (or eliminate) to save yourself time and energy? What could you do with the time you save? Share your thoughts in the comments, on Twitter, LinkedIn, or Facebook.
Never Miss a Post
When you sign up to receive my blog posts by email, you’ll get a FREE copy of The Digital Goal Domination Guide, my new ebook that will show you how to reach your goals using OmniFocus and Evernote. Get more done this year than you ever thought possible!
PLUS, you’ll receive occasional bonus content and special offers, some of it not available on the blog.