Create an evernote note via applescript

EvernoteI am a massive fan of evernote and I use this application each and every single day. One of the main uses is I have a notebook which I use as a logbook at my main sysadmin job. I use this to log commands on the different servers, make note of scripts tasks throughout the day etc. I also document errors that occur and attach the resolutions also.

Each day I load Evernote, go into the notebook, create a new note as the date, add the tags etc then sync the application. To be honest it's a bit of a bore to do this every day. Recently I have started to have a look into Applescript to see if I can automate most of the manual tasks I need to do on my Mac.

Thankfully this is a very easy thing to do, below you can see my very basic applescript. It loads Evernote and creates the note for me. The beauty of this is I can schedule this script in iCal, so each day before I wake up it loads Evernote, creates my note, syncs the application then closes down again. So now when I get into work and load Evernote the notes all ready for me to use.

Below is the code

# Script Name : evernote_create_logbooks

# Author : Craig Richards

# Created : 8th December 2012

# Last Modified

# Version : 1.0

# Modifications :  

# Description : This creates my logbook entry for the day  

tell application "Evernote"

set myNotebook to notebook "Work Log"

set tDate to short date string of (current date) as string

set noteTitle to short date string of (current date) as string

create note title noteTitle with text " " notebook myNotebook tags {"logbooks", "Work"}

synchronize

delay 20

quit

end tell

I hope you find this useful, if you can offer suggestions/improvements please don't hesitate to get in touch.

I am always interested in your thoughts so if you have any comments or feedback then please feel free to add any comments to the post, or you can mail me  here 

 

Lord of the rings timeline on your Mac

FRM-92101, Forms session aborted: runtime process failed during startup with errors