Page 1 of 1

One rule with a condtion which matches one of two file stems

PostPosted: Thu Apr 27, 2017 10:36 pm
by halloleo
I want to create a rule which moves a downloaded files based on one of two "name" matches and a "kind" match.

So I have a condition structure like this:

(Name starts with "abc" or Name starts with "def") and Kind is PDF

How can I do this in Hazel? Regex for the name match would be an option, but I could find regex matching... Creating two separate rules is another option, but that's not very maintainable, because most of the rule content will be the same for both rules, only the name match is different...

What's my best option?

Re: One rule with a condtion which matches one of two file s

PostPosted: Fri Apr 28, 2017 9:28 am
by Mr_Noodle
You can use a nested condition to do that: https://www.noodlesoft.com/kb/how-to-cr ... onditions/

Re: One rule with a condtion which matches one of two file s

PostPosted: Sun Apr 30, 2017 6:04 am
by halloleo
Thanks Paul.

That's exactly what I was looking for.

Sorry, wasn't able to discover it myself...