Page 1 of 1

Rule matching with multiple color labels simultaneously?

PostPosted: Sat Aug 01, 2015 8:08 am
by jcloo
Hello!
I am trying to create a hazel rule to move a file that has two specific color labels (image #1 below). However it seems that Hazel only has the ability to match on a single color label (image #2), and only recognizes that last color label applied to the file. Note: This does work as expected if just a single tag/label is applied

Has anyone else noticed a similar behavior or had any luck accomplishing a similar task?

Thanks!

Hazel Rule: Image
Hazel Rule Match: Image

Re: Rule matching with multiple color labels simultaneously?

PostPosted: Mon Aug 03, 2015 11:06 am
by Mr_Noodle
A file can only have one color label. It can have multiple tags though so you might want to try matching on those instead since the color labels map to tags.

Re: Rule matching with multiple color labels simultaneously?

PostPosted: Wed Aug 19, 2020 11:07 am
by BenW
jcloo wrote:Hello!
I am trying to create a hazel rule to move a file that has two specific color labels (image #1 below). However it seems that Hazel only has the ability to match on a single color label (image #2), and only recognizes that last color label applied to the file. Note: This does work as expected if just a single tag/label is applied

Has anyone else noticed a similar behavior or had any luck accomplishing a similar task?

Thanks!

Mr_Noodle wrote:A file can only have one color label. It can have multiple tags though so you might want to try matching on those instead since the color labels map to tags.


In Catalina (and a few earlier OS) a file CAN have more than one color label. I've had the same issue of only the most recent being recognized by rules. I've changed my rules to evaluate tags instead of colors thanks to this thread, but am pointing out for correctness going forward the new capability of multiple colors so that it might be implemented in upcoming versions of Hazel.

Re: Rule matching with multiple color labels simultaneously?

PostPosted: Thu Aug 20, 2020 10:43 am
by Mr_Noodle
Thanks for the update though it's a bit more subtle than that. Apple has tied color labels and tags together but internally, there is a color label that is independent of tags. When you set color labels in Finder, you are adding generic color tags ("yellow", "blue", etc). Internally, there is one color label which is a number and it can be set regardless of whether any tags of that color exist in the system. It's bit of a confusing mess but nonetheless, it's always best to match on tags when possible.