Skip to content

Instantly share code, notes, and snippets.

@bryanwillis
Forked from lsfalimis/append-attachment-en.scpt
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save bryanwillis/13e1518dac3c4098198a to your computer and use it in GitHub Desktop.

Select an option

Save bryanwillis/13e1518dac3c4098198a to your computer and use it in GitHub Desktop.
tell application "Evernote"
set _selectedNote to false
set _notes to get every note of every notebook where its title contains "TARGETNOTE"
repeat with _note in _notes
if length of _note is not 0 then
set _selectedNote to _note
end if
end repeat
tell item 1 of _selectedNote to append text return & return & date string of (current date) & time string of (current date) & return
tell item 1 of _selectedNote to append attachment theFile
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment