more rules into the same folder

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

Moderator: Mr_Noodle

more rules into the same folder Sun Dec 30, 2012 5:58 am • by tsolignani
I understood that rules's order matters and that Hazel execute only the first rule that matches.

Weel, what am I supposed to do when I need to execute more roles into the same folder?

I have a download folder where I have to perform several works, partly converting movie downloaded, partly get notified of every new file into the folder and so on...

I tried adding again the same folder, to put the "second" rule on that, but Hazel does not allow it.

Am I missing something?

Thank you.


–
cordialmente,

tiziano solignani, da  Mac
http://blog.solignani.it
tsolignani
 
Posts: 7
Joined: Sat Dec 29, 2012 11:13 am

Re: more rules into the same folder Sun Dec 30, 2012 11:24 am • by a_freyer
You'll need to set a specific enough condition so that the second rule matches but the first rule does not. For instance:

First Rule:
Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     Color Label is not blue
     ...

Do the following to the matched file or folder:
     Set Color Label blue
     ...


Second Rule:
Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     Color Label is blue
     ...

Do the following to the matched file or folder:
     ...


This way we have very specific conditions that do not permit the first rule to act on blue files, but allows the second rule to act on blue files.

It does not have to be a color label - you could add "PROCESSING" to the filename, or you could process the files in a different directory entirely. There are many ways to set a flag.
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado


Return to Support