I am having an issue with a rule in Hazel that uses a custom attribute. When a file (e.g. aa7.pdf) matches this rule, it is not processed as expected. When I check the Hazel log, I see the error:
Caught exception in rule evaluation of file aa7.pdf: [valueForUndefinedKey:]: this class does not comply with key value encoding for the key hazelcustomtoken:Rechnungs-Nr.[ #]
The custom attribute "Rechnungs-Nr." is simply an 8-digit string extracted from the file contents.
Is the above error caused by the custom attribute name containing a special character such as a dash or a period? If so, how should I rename the attribute to avoid the [valueForUndefinedKey:] error in Hazel?