Skip to content

Instantly share code, notes, and snippets.

@ChrisSavoie
Created July 14, 2018 16:40
Show Gist options
  • Save ChrisSavoie/b201495deafcaf797b750e52e1485523 to your computer and use it in GitHub Desktop.
Save ChrisSavoie/b201495deafcaf797b750e52e1485523 to your computer and use it in GitHub Desktop.
Create Lilypad Client Brief Evernote Automation Script
set theResponse to display dialog "Client Name" default answer "" with icon note buttons {"Cancel", "Continue"} default button "Continue"
set myQuery to "tag:^" & text returned of theResponse & "*"
set lilyResume to "tag:\"πŸ“— Resume\" " & myQuery
set lilyInterview to "tag:\"πŸ—£ Interview\" " & myQuery
set lilyCoverLetter to "tag:\"πŸ“ Letters\" " & myQuery
set lilyDocuments to "tag:\"πŸ“˜ LinkedIn\" " & myQuery
tell application "Evernote"
set myNotes to find notes lilyResume
-- open collection window with query string lilyResume
set myNote to item 1 of myNotes
open note window with myNote
set myNotes to find notes lilyInterview
-- open collection window with query string lilyInterview
set myNote to item 1 of myNotes
open note window with myNote
set myNotes to find notes lilyCoverLetter
-- open collection window with query string lilyCoverLetter
set myNote to item 1 of myNotes
open note window with myNote
set myNotes to find notes lilyDocuments
-- open collection window with query string lilyDocuments
set myNote to item 1 of myNotes
open note window with myNote
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment