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

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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?
halloleo
 
Posts: 59
Joined: Thu Apr 27, 2017 10:10 pm

You can use a nested condition to do that: https://www.noodlesoft.com/kb/how-to-cr ... onditions/
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks Paul.

That's exactly what I was looking for.

Sorry, wasn't able to discover it myself...
halloleo
 
Posts: 59
Joined: Thu Apr 27, 2017 10:10 pm


Return to Support