Starting with Hazel 4, while editing your rule, you can have Hazel preview it against a file. It will show you how your conditions match up while you create/edit your rule.
To turn on preview:
- Click the Preview button, located in the top-right of the rule interface.
- Select the file/folder you want to preview against. Note that is has to be located under the folder Hazel is monitoring.
With preview mode on, the rule UI will show various indicators. Each condition will show one of the following badges:
Condition matches the previewed file.
Condition does not match the previewed file.
There was an error trying to match the file.
Condition cannot be evaluated yet (usually when a field is blank)
Clicking on the badge will bring up the value for the attribute(s) being matched by the condition. This will allow you to see where things may be going wrong with that condition.
Also, there will be an indicator to the left of the Preview button to show whether the rule as a whole matches or not.