Page 1 of 1

Name contains: Receipt *or* invoice *or* payment

PostPosted: Mon Mar 04, 2013 7:44 pm
by joshsmith01
I want Hazel to only act on pdf's that have certain words in the name.

Code: Select all
Kind is PDF
Name contains payment, invoice, *or* receipt


         

Can I use
Code: Select all
Name contains payment || invoice || reciept

Is it possible for Hazel to choose through a list of possible parameters to make her choice from?

-Josh

Re: Name contains: Receipt *or* invoice *or* payment

PostPosted: Mon Mar 04, 2013 8:20 pm
by a_freyer
Hold OPT to give hazel the option for nested conditions. You will see the [+] turn to a [ . . . ]:

Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     kind is pdf
     if (any) of the following conditions are met for (the file or folder being processed):
          name contains payment
          name contains invoice
          name contains receipt

Do the following to the matched file or folder:
     …

Re: Name contains: Receipt *or* invoice *or* payment

PostPosted: Tue Mar 05, 2013 11:38 am
by joshsmith01
@a_freyer Perfect, thank you for that great tip. It works perfectly.