I think either the word “looks” or “like” has a special meaning in El Capitan AppleScript, because this no longer works:
set isSpam to looks like spam message theSource
It says “Expected end of line but found identifier.” on “like”
So, I tried converting the script to JXA:
But this gets me “Error -1701: Parameter is missing.”
Any help on either of these avenues is appreciated. Thanks!