Skip to content

Instantly share code, notes, and snippets.

@swbuehler
Created November 6, 2013 20:23
Show Gist options
  • Save swbuehler/7343442 to your computer and use it in GitHub Desktop.
Save swbuehler/7343442 to your computer and use it in GitHub Desktop.
tell application "Evernote"
set theDate to (the (current date) - the (time of the (current date)))
-- Today's applications
do shell script "echo " & quote & "Applied Today:" & quote & " > ~/Jobs.txt"
set theNotes to every note in notebook "Job Search" whose creation date ≥ theDate
repeat with eachNote in theNotes
set theTitle to the title of eachNote
do shell script "echo " & quote & theTitle & quote & " >> ~/Jobs.txt"
end repeat
-- Today's modified items
do shell script "echo " & quote & "Updated Today:" & quote & " >> ~/Jobs.txt"
set theNotes to every note in notebook "Job Search" whose (modification date ≥ theDate and creation date < theDate)
repeat with eachNote in theNotes
set theTitle to the title of eachNote
do shell script "echo " & quote & theTitle & quote & " >> ~/Jobs.txt"
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment