Keyboard Maestro - Sending email to Evernote

This Macro is designed to work in conjunction with the 'Setting a reminder date' Macro to allow one key press auto filing of email into various Evernote note books.

The first action assigns a hot key and puts the name of the Evernote notebook into the variable 'ENbook'. This means that only these two panels need to be changed as you set a number of different hotkeys pertaining to different notebooks. Example: CTRL R = @Receipts, CTRL M = @Misc, CTRL T = @Travel etc. The rest of the body of the Macro is identical.

At this point you could also add tags by assigning for example CTRL SHIFT R = @Receipts #Taxi

Next the Macro tests for whether a variable %vReminderdate% has been set by 'Setting a reminder date' Macro. If this variable has a value, a reminder needs to be attached to the email to be dispatched to Evernote. If it's null, no reminder needs to be added to the subject line.

The variable 'vSubject' is the subject line of the email being sent to Evernote. It's constructed of %Mailsubject% - the existing subject of the email in focus, %vReminderdate% - the date set by the previous Macro and %ENbook% the name of the destination book (and tag if appropriate) set at the top of the Macro

The variable %vReminderdate% is then re set to null so that a subsequent Macro doesn't use the same reminder date.

Else: The macro does the same thing without the reminder date.

Screen Shot 2014-07-02 at 21.51.24.png

Next, we select the forward option in mail, Pause (you need at least two seconds here - if mail is still sending the previous message, surprisingly the forward takes a good 2 seconds to come up on my Mac Pro). In the 'To' field the Macro pastes your own 'mail to Evernote' email address and the tabs down to insert the subject line we created above.

Then the macro sends your email off to Evernote, labelled with the correct reminder date, @Notebook and #Tab.

If you find that the to or subject variables are beings posted to wrong fields - increase the pause as it means that the Macro is getting ahead of the app.

Finally, delete the email in focus.

Keyboard Maestro - Setting an Evernote Reminder Date

This Macro only works if used in conjunction with 'sending email to Evernote' Macro.

The Macro creates a dialog box populated with today's date, allows the user to amend that date if necessary, and stores that date in a variable called vReminderdate for use in the 'sending email to Evernote' Macro.


First, disassemble the date into it's component parts to auto populate the dialog prompt.  

Next, create a prompt box that allows the user just to press ok for today's date, alter the date or press cancel not to set a reminder.

The Variable 'Result Button' contains the result of the key press (label). If it's set to 'cancel' then  clear the variable 'vReminderdate' . If when the 'sending email to Evernote' Macro runs it sees that 'vReminderdate' is empty then it does not set a reminder.

Else, the OK button has been pressed in which case put a '!' in front of the reminder date as this is the convention that Evernote uses to trigger a reminder on stored emails.

As a result of the user pressing CTRL 'Z' either 'vReminderdate' has been set with the date of a reminder or it is set to null - no reminder.

Keyboard Maestro - Setting a reminder for 1 week later

This Macro creates a Reminder for use with the Macro - 'Sending emails to Evernote' with the date set for seven days later than the current date.

First, it disassembles the current date %numberdate% into it's component parts

Then it establishes whether the month has 28, 30 or 31 days.

Next, calculate 7 days hence and increment month and year as appropriate if date wraps into new month.

Finally, re-assemble the day, month & year into a variable %vReminderdate% which is used by the 'Sending email to Evernote' Macro. The leading '!' is required by the Evernote subject line protocol for emailing reminders into the service.