Page 1 of 1

Using Contents Contain twice in a rule not working

PostPosted: Mon Aug 26, 2013 9:42 am
by sgirardier
I have all my scans going into one folder then hazel analyzing folder and moving files to folders that are indexed by DevonThink. When I add a second Contents Contain the rule no longer runs.

I manage all my mom's bill paying along with my own and some invoices are from the same company. I want Hazel to identify an invoice from Southwest Electric with my mom's name and send it to one folder. If invoice contains my name, send to a different folder. I can get it to identify the vendor and contain match the date, rename the file and move it. But if I add a second condition with one of our names, the rule doesn't run at all.

This works
Image

This doesn't
Image

Is there another way to accomplish this that works?

Thanks.
Sue

Re: Using Contents Contain twice in a rule not working

PostPosted: Tue Aug 27, 2013 1:27 pm
by Mr_Noodle
For "contents contain", do a Spotlight search for the term in question. If the file in question doesn't show up in the search results, then that condition won't match in Hazel either. You'll need to diagnose your Spotlight installation/config to see what's going on there.

Re: Using Contents Contain twice in a rule not working

PostPosted: Wed Aug 28, 2013 9:35 am
by sgirardier
Thanks. That's the problem though I now have to figure out why my OCR is picking up the first but not the second.

Re: Using Contents Contain twice in a rule not working

PostPosted: Wed Aug 28, 2013 3:26 pm
by Mr_Noodle
You can also try "Contents contain match" instead. You can use just text instead of a pattern. The caveat here, though, is that it's more resource-intensive than "Contents contain" but it may not be noticeable depending.