Skip to content

Instantly share code, notes, and snippets.

@lsfalimis
Last active March 11, 2024 03:05
Show Gist options
  • Save lsfalimis/bed236b14c216b25cc71 to your computer and use it in GitHub Desktop.
Save lsfalimis/bed236b14c216b25cc71 to your computer and use it in GitHub Desktop.
Append timestamp and theFile with line break to TARGETNOTE working with Hazel
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