Evernote Variable Tag
Posted: Thu Mar 14, 2019 10:55 pm
When adding a note to Evernote via Hazel, I would like to extract a date from the document and use the year of that date as an input for a tag in Evernote. I can't seem to get this to work.
The AppleScript is as follows:
tell application "Evernote"
if (not (notebook named "Paystubs" exists)) then
make notebook with properties {name:"Paystubs"}
end if
activate
set YearTag to item 1 of inputAttributes
create note from file theFile notebook "Paystubs" tags {"Paystubs", "Sandra McCrory", "Town of NA",YearTag}
end tell
Any thoughts? Thx
The AppleScript is as follows:
tell application "Evernote"
if (not (notebook named "Paystubs" exists)) then
make notebook with properties {name:"Paystubs"}
end if
activate
set YearTag to item 1 of inputAttributes
create note from file theFile notebook "Paystubs" tags {"Paystubs", "Sandra McCrory", "Town of NA",YearTag}
end tell
Any thoughts? Thx