Your script compiles perfectly fine for me in Hazel, with the most recent version of both Evernote and Hazel.
I believe the problem may lie in a previous Evernote AppleScript dictionary (i.e. from a previous version), and AppleScript is confused.
To fix this issue, run this command in terminal to update your Launch Services database:
- Code: Select all
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;
My other suggestion is to delete the four instances of double quotes and replace them by typing.