Last active
March 11, 2024 03:05
-
-
Save lsfalimis/bed236b14c216b25cc71 to your computer and use it in GitHub Desktop.
Append timestamp and theFile with line break to TARGETNOTE working with Hazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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