# Using Hazel to set color labels on files with hook links

**URL:** https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496
**Category:** Share Hookmark automation
**Created:** [January 10, 2022, 1:45am UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496 "2022-01-10T01:45:04Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![marlowe](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@marlowe](https://discourse.hookproductivity.com/u/marlowe)
#### Post date: [January 10, 2022, 1:45am UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/1 "2022-01-10T01:45:04Z")

</div>

Not sure whether something like this idea has been posted elsewhere on the forum, but I tried using Hazel to label files with Hook links (tagged Hook) with a color label in Finder. Here’s what the rule looks like:

 ![Screenshot of ScreenFloat (1-10-22, 5-42-37 PM)](https://discourse.hookproductivity.com/uploads/default/original/2X/a/a26e0ad94438e3b965ca8012ea6052ddf10f276f.png)

It works well to show at a glance which files have Hook links.

---

<div class="post-metadata">

### Author: ![dob3rman](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/dob3rman/32/1954_2.png) [@dob3rman](https://discourse.hookproductivity.com/u/dob3rman)
#### Post date: [January 10, 2022, 8:34pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/2 "2022-01-10T20:34:56Z")

</div>

How are you monitering hooked files with hazel? Great idea, missing something here…

---

<div class="post-metadata">

### Author: ![marlowe](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@marlowe](https://discourse.hookproductivity.com/u/marlowe)
#### Post date: [January 10, 2022, 9:42pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/3 "2022-01-10T21:42:23Z")

</div>

When I create a Hook link, I noticed in the macOS Finder info that a tag named “Hook” is added to the file. So the Hazel rule looks for files with this tag and then gives them a color label, to make it noticeable which ones have links attached.

---

<div class="post-metadata">

### Author: ![dob3rman](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/dob3rman/32/1954_2.png) [@dob3rman](https://discourse.hookproductivity.com/u/dob3rman)
#### Post date: [January 10, 2022, 10:06pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/4 "2022-01-10T22:06:51Z")

</div>

What folder are you monitoring with Hazel?

---

<div class="post-metadata">

### Author: ![marlowe](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@marlowe](https://discourse.hookproductivity.com/u/marlowe)
#### Post date: [January 10, 2022, 10:44pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/5 "2022-01-10T22:44:58Z")

</div>

~/Documents, and, actually, I found that it wasn’t hitting all the subfolders/files until I added an additional action in Hazel, which was _Run Rules on Folder Contents_. I updated the screenshot above.

---

<div class="post-metadata">

### Author: ![WJJP](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@WJJP](https://discourse.hookproductivity.com/u/WJJP)
#### Post date: [January 11, 2022, 2:11am UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/6 "2022-01-11T02:11:38Z")

</div>

No joy with this. Where does this “label” appear?

---

<div class="post-metadata">

### Author: ![lawyerboy](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/l/977dab/32.png) [@lawyerboy](https://discourse.hookproductivity.com/u/lawyerboy)
#### Post date: [January 11, 2022, 1:34pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/7 "2022-01-11T13:34:28Z")

</div>

Just to note if you right-click on a tag in the Finder sidebar, you can assign a colour to it: so I have the ‘Hook’ tag coloured purple and can therefore see any file that’s been hooked.

---

<div class="post-metadata">

### Author: ![martinewski](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/martinewski/32/1309_2.png) [@martinewski](https://discourse.hookproductivity.com/u/martinewski)
#### Post date: [January 11, 2022, 5:15pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/8 "2022-01-11T17:15:30Z")

</div>

You need to enable the option in Hook’s preferences.

 ![ZAPPY_Screen Shot 2022-01-11 at 2.14.53 PM](https://discourse.hookproductivity.com/uploads/default/original/2X/2/2c17a9c72d2945ce6018666e7fb86b6b8df09236.png)

---

<div class="post-metadata">

### Author: ![marlowe](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@marlowe](https://discourse.hookproductivity.com/u/marlowe)
#### Post date: [January 11, 2022, 6:29pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/9 "2022-01-11T18:29:15Z")

</div>

Thank you for that great tip re the sidebar. I didn’t know about that option in Finder till today.

---

<div class="post-metadata">

### Author: ![philbowell](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/p/13edae/32.png) [@philbowell](https://discourse.hookproductivity.com/u/philbowell)
#### Post date: [January 11, 2022, 7:53pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/10 "2022-01-11T19:53:20Z")

</div>

You could also use the built in ability to add a colour to a tag and it happen with out Hazel.

---

<div class="post-metadata">

### Author: ![WJJP](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/w/c0e974/32.png) [@WJJP](https://discourse.hookproductivity.com/u/WJJP)
#### Post date: [January 12, 2022, 12:14am UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/11 "2022-01-12T00:14:54Z")

</div>

I find this works only if I have _two_ Hazel rules

 ![image](https://discourse.hookproductivity.com/uploads/default/original/2X/f/fcc73178965423a093beb460650fb047df38d7db.png)  
and  
 ![image](https://discourse.hookproductivity.com/uploads/default/original/2X/7/72f05e005b984cb8a80865f3e82724c66e4328d4.png)

Over here, combining both rules in one does not succeed.

---

<div class="post-metadata">

### Author: ![pug](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/p/51bf81/32.png) [@pug](https://discourse.hookproductivity.com/u/pug)
#### Post date: [January 12, 2022, 9:58am UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/12 "2022-01-12T09:58:28Z")

</div>

As already pointed out, setting a global colour is best handled in Finder. However, if you want the colour to be different depending on which folder the hooked file is in, then Hazel is a great option.

I use Hazel to rename the hook tag to ♾ which takes less space and feels more ‘hooky’. @LucB Perhaps you can make it an option to set this as default?

---

<div class="post-metadata">

### Author: ![drspk](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@drspk](https://discourse.hookproductivity.com/u/drspk)
#### Post date: [January 12, 2022, 4:17pm UTC](https://discourse.hookproductivity.com/t/using-hazel-to-set-color-labels-on-files-with-hook-links/4496/13 "2022-01-12T16:17:14Z")

</div>

I just created a Finder Smart folder for Hook, using the Finder tag referenced by martinewski. What does Hazel bring to the party?
