Hazel to Evernote

I have been a Hazel user for many years, primarily to copy files from a specific folder on my Mac to Evernote. I set these scripts a very long time ago (2011 or so). Definitely a case of set and forget.
I drifted away from it a couple of years ago but have recently bought a new Mac and have upgraded to the latest version of Hazel (5.1.4) and Evernote (10.42.7-mac-mas-public (459255) Editor: v154.0.18759 Service: v1.56.1)
I have been trying to recreate my old actions but the AppleScript does not compile.
The script is based on this - seems to get hung up on note..
tell application “Evernote”
activate
create note from file theFile notebook {“Inbox”} tags {“scan”}
end tell
I have a huge amount of scanning and archiving to do and am desperate for a solution. Any help appreciated...
I drifted away from it a couple of years ago but have recently bought a new Mac and have upgraded to the latest version of Hazel (5.1.4) and Evernote (10.42.7-mac-mas-public (459255) Editor: v154.0.18759 Service: v1.56.1)
I have been trying to recreate my old actions but the AppleScript does not compile.
The script is based on this - seems to get hung up on note..
tell application “Evernote”
activate
create note from file theFile notebook {“Inbox”} tags {“scan”}
end tell
I have a huge amount of scanning and archiving to do and am desperate for a solution. Any help appreciated...