I suspect "Tags is a list and not a single value" is the source of my misunderstanding and the error.
How would I reference and utilize the Finder Tags in the Tags list imported to the AppleScript? My goal is to duplicate the Finder tags in the Evernote note created by the script.
The Hazel log from the error is below. For context, the file being acted on is "Ophelia.pdf". It contains Tags "Journal Articles" and "stroke" and the Comment "test". The attributes imported into the script are Tags and Comment.
Thanks.
)}
2020-09-09 20:15:33.525 hazelworker[10326] Done processing folder Action
2020-09-09 20:19:16.240 hazelworker[10445] Running worker (v4.4.5) for folder with identifier: 16777220-12898099680.
2020-09-09 20:19:16.242 hazelworker[10445] ###main load address: 0x100244000
2020-09-09 20:19:16.242 hazelworker[10445] ###Noodle load address: 0x100361000
2020-09-09 20:19:16.242 hazelworker[10445] ###CK load address: 0x100329000
2020-09-09 20:19:16.276 hazelworker[10445] Processing folder Action EN (forced)
2020-09-09 20:19:18.288 hazelworker[10445] Ophelia.pdf: Rule Send to Evernote matched.
2020-09-09 20:19:22.194 hazelworker[10445] [Error] AppleScript failed: Error executing AppleScript on file /Users/kurt/Documents/Action EN/Ophelia.pdf.
2020-09-09 20:19:22.202 hazelworker[10445] OSAScript error: {
NSLocalizedDescription = "Evernote got an error: Can\U2019t make {{\"Journal Articles\", \"stroke\"}, \"test\"} into type list of text or list of tag.";
NSLocalizedFailureReason = "Can\U2019t make {{\"Journal Articles\", \"stroke\"}, \"test\"} into type list of text or list of tag.";
OSAScriptErrorAppAddressKey = "<NSAppleEventDescriptor: [0x0,17c47c3 \"Evernote\"]>";
OSAScriptErrorAppNameKey = Evernote;
OSAScriptErrorBriefMessageKey = "Can\U2019t make {{\"Journal Articles\", \"stroke\"}, \"test\"} into type list of text or list of tag.";
OSAScriptErrorMessageKey = "Evernote got an error: Can\U2019t make {{\"Journal Articles\", \"stroke\"}, \"test\"} into type list of text or list of tag.";
OSAScriptErrorNumberKey = "-1700";
OSAScriptErrorOffendingObjectKey = "<NSAppleEventDescriptor: [ [ 'utxt'(\"Journal Articles\"), 'utxt'(\"stroke\") ], 'utxt'(\"test\") ]>";
OSAScriptErrorRangeKey = "NSRange: {0, 0}";
}