Documentation Question

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Documentation Question Mon Sep 11, 2006 6:35 am • by bhcohen
The online help has the following two items:

--
The first rule that matches is the one and only one that is run.
This means that if it finds a match, subsequent rules in the list are not looked at for that file. Note that this differs from how Apple Mail processes rules.

If a file is not moved from the folder, Hazel will continue to run the file through the rule list
--

Do these statements conflict with one another? If I have a rule that sets a label on a file, followed by a rule that creates an archive for a file... if the
"set label" rule is run and sets a label does the second rule get evaluated?

Thanks,
Bruce
bhcohen
 
Posts: 9
Joined: Sun Sep 10, 2006 3:44 pm

Mon Sep 11, 2006 10:45 am • by Mr_Noodle
The second statement says that if the file remains in the folder, it will still get run through the rule list. It will still apply the first rule that matches.

In your example, the second rule will not get applied to the file because the previous rule matched (and still matches). If something changes about the file, it may end up matching a different rule.

Note that in 1.0.2 there is a subtle change. If a rule matched the same rule it did last time, its actions won't get run again. This gets rid of the side-effect before where let's say you had a rule and had it turn a file orange. Let's say you clear the color. When Hazel sees it again, if it still matches the rule, it will turn it back orange again. Now, it will stay clear, the notion being that if you explicitly changed it after Hazel did, you want it to stay that way.
Mr_Noodle
Site Admin
 
Posts: 11196
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion