Without boring you with the reasons why (let's just say "custom logging for debugging") I would like to pass a token to an AppleScript that effectively has nothing to do with the file itself. What I want is to pass the Hazel Rule name to the AppleScript as a token. I'd be delighted if there was a way of doing so dynamically, but since I suspect there isn't, what I need is to create that custom token. Since the rule name has nothing to do with the file, I've tried creating that token using a condition as follows:
Comment - does not match - [RuleName]. (Where [RuleName] token text is "HAZEL RULE: Rental Statements")
This looks like it should work. The toekn gets created and I can select it and pass it to the (external) AppleScript along with 2 other tokens, but when I pass that new "RuleName" token to the script, it always has a "missing value". Is this because the token doesn't actually get populated for "does not match" condition...? Does it only work when it DOES match?
Any ideas on how I can make this work?