Page 1 of 1

Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Fri Nov 29, 2024 3:24 pm
by BoldInterrobang
Problem: Hazel does not find that a file matches a rule, despite the "Preview Rule" function saying it's a match.

Setup: I have files in a folder on Google Drive. I've ensured that the folder is syncing full copies of files. There are about 45 rules on this folder right now, it sorts mail and PDFs and such. The rules all start with Kind is PDF then have a few criteria to match the file, then a date match. The actions are renaming to <date> Statement.pdf and moving to the correct folder.

What I've Tried:
    - Checking log with debug enabled. Shows that the files do not meet any rules.
    - Pulled text out of files and can see that there is text that meets the criteria.
    - Moved just the one rule and the target file to another folder. Rule still didn't fire.
    - Rebooting.
    - Disabling, re-enabling Spotlight.
    - Changing "Use Text Recognition" to Always.

None of these worked. At this point I'm afraid I'm going to have to write a script of sorts to do this sorting if Hazel can't do it. :(

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Mon Dec 02, 2024 10:40 am
by Mr_Noodle
Have you checked the rule status?

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Mon Dec 02, 2024 1:29 pm
by BoldInterrobang
Mr_Noodle wrote:Have you checked the rule status?

I have - it does not show that the files will match any rules, despite the "Preview Rule" function showing the file would Pass. I've also disabled Spotlight, rebooted, reenabled, and waited a day to see if there was some weird Indexing issue going on with Spotlight.

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Tue Dec 03, 2024 9:38 am
by Mr_Noodle
Can you post screenshots of the rule and preview? You can't upload images here but you can either host them on your own cloud service or use imgur.com.

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Tue Dec 03, 2024 1:34 pm
by BoldInterrobang
This is the rule detail with preview enabled, preview of file, and rule status, redacted for privacy: https://files.landon.co/Screenshot-2024 ... .53-AM.png

Here is the log showing the rule has no match: https://files.landon.co/Screenshot-2024 ... .22-AM.png

Appreciate you taking the time to respond!

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Wed Dec 04, 2024 9:48 am
by Mr_Noodle
Can you try switching to "contain match" instead of "contains" and see if that works?

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Wed Dec 04, 2024 11:35 am
by BoldInterrobang
Unfortunately, same result. Updated rule and log in screenshot here: https://files.landon.co/Screenshot-2024 ... .05-AM.png

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Thu Dec 05, 2024 9:45 am
by Mr_Noodle
Can you send a sample file and an export of your rules in to support via email? Go to Help->Contact Support.

Re: Preview Rule All Green, But Rule Doesn't Trigger

PostPosted: Thu Dec 05, 2024 11:14 am
by BoldInterrobang
Done. Thank you for your help!