In the last post I discussed how to create note templates in Evernote for Windows. Now let’s discuss how to do it on a Mac. Again, I want to give credit to Stephen Millard of Thought Asylum. Many of these ideas were taken from his blog, so I recommend reading his posts on the subject first.
The first step is the same as it was for Evernote for Windows. You need to create the note template and export it as a file in ENEX format (.enex) using the ‘Export Notes to Archive…’ option in the file menu. I recommend creating an ‘Evernote Templates’ folder inside your Documents folder and saving the template file there. Open the template file in your favourite text editor and delete the ‘created’ and ‘updated’ tags and all the numbers/text between those tags (see previous post for more details). Once that’s finished, save and close the template file.
Now it’s time to create an AppleScript. Open the AppleScript Editor and paste in the following code:
1 2 3 4
tell application "Evernote" activate import "/Users/Your OS X Username Here/Documents/Evernote Templates/Sample Template.enex" to "1. Inbox" without tags end tell
You’ll need to change the path to the template file to match your needs, and, if you want, you can change the notebook into which the template file is imported as well. Once that is finished, create a folder named ‘Evernote’ in the following directory: /Library/Scripts. You’ll know you’re in the right directory if you see other folders such as ‘ColorSync’, ‘Folder Actions’, ‘iChat’, etc. there. Save the AppleScript in the /Library/Scripts/Evernote folder that you just created. Before you exit the AppleScript Editor, open ‘Preferences…’ and, under the ‘General’ tab, make sure the ‘Show Script menu in menu bar’ option is checked. A little paper-scroll icon should now appear in your menu bar. Close the AppleScript Editor.
Now it’s time to test out the script. Click on the paper-scroll icon in the menu bar. Mouse over the Evernote folder and click on the note template script you just created. The note template should appear inside the notebook you specified.
If the script doesn’t seem to be working, put the template file directly inside your Documents folder and use the following code:
1 2 3 4
tell application "Evernote" activate import "/Users/Your OS X Username Here/Documents/Sample Template.enex" to "1. Inbox" without tags end tell
You can create as many templates/scripts as you’d like, and you can launch them all directly from the menu bar.
Stay tuned for Part 3 where I’ll explain how to integrate the Evernote template system into your GTD workflow.