Hazel – Performing Tasks On Your Mac So You Don’t Have To

Hazel icon   Hazel   Performing Tasks On Your Mac So You Dont Have ToI have previously written an entire MUO guide about using Apple’s smart folders and Automator program, but a classic third-party application called Hazel is one of my personal automation  assistants that works in the background, requiring no keyboard shortcuts and mouse clicks on my part.

Hazel is an automation program that essentially goes into action when files are added or changes are made to designated folders. Automator includes similar functionality, but Hazel is much easier to use and faster on the draw. I have Hazel rules that automatically open new applications added to my Applications folder, change the file size of screenshots, automatically clear off files on my desktop after a certain period of time, and move PDF files in my Downloads folder to a designated folder in my Dropbox account (more about Dropbox here.)

Hazel costs $25, but you can download it for a free 14-day trial to discover just how useful it can be.

Hazel 15   Hazel   Performing Tasks On Your Mac So You Dont Have To

How It Works

Hazel basically watches folders that you assign rules to. So, for example, you could set up a rule in which Hazel automatically opens PDF documents, or any files, when they are downloaded or added to your Downloads folder. Once you set up the rule, and it works correctly, you don’t have to do anything else to Hazel in order for it to perform actions. Hazel gets installed in your System Preferences, but you can choose to interact with it from your menu bar.

The best way to learn what Hazel can do is to download the trial version and try out some of the rules described in this article. Hazel comes loaded with a few sample rules, but you will better understand what it can do by creating your own rule first.

Let’s start off by having it perform an action on your Downloads folder. On the left side of the Hazel interface, click on the + button at the bottom, and in the drop-down window navigate to and select your Downloads folder. Next, click on the + button under Rules, and set up the conditions as I have done in the screenshot below.

Hazel 11   Hazel   Performing Tasks On Your Mac So You Dont Have To

Click OK. If you already have PDF documents in your Downloads folder, Hazel will automatically run the rule and open them. Otherwise, locate a PDF on your computer or download one from our MUO Guides page and add it to your Downloads folder. Keep in mind, Hazel will automatically run a rule assigned to your Downloads folder. However, you can temporarily stop Hazel from running by clicking on its icon in your menu bar.

Hazel 12   Hazel   Performing Tasks On Your Mac So You Dont Have To

Rules & Conditions

The heaviest amount of work done in Hazel is setting up rules and conditions, and testing them out. Any time Hazel detects changes to designated folders that it monitors, it will run the rules you set up for those folders, so be careful how you apply the rules. When setting up a rule, you will first want to determine if you want to apply the rule to “all”, “any”, or “none”of a designated types of files or matching folders.

Note, rules can also be applied to sub-folders and files.

Hazel 13   Hazel   Performing Tasks On Your Mac So You Dont Have To

Next, you want to think about what type of files or conditions you want Hazel to monitor and act on. Hazel includes dozens of conditions to choose from, based on the type of things that we normally do on our computer. You may, for example, set up rules to act upon files added to a designated folder in the last hour or day, or when last modified or opened.

Hazel 16   Hazel   Performing Tasks On Your Mac So You Dont Have To

Your rule(s) may apply to only certain kinds of files, e.g. Movie, Image, Application, or Text files. This means, for example, that if you set up a rule for your Downloads folder to only apply to PDFs, then Hazel will ignore other kinds of files added to that folder.

Hazel 3   Hazel   Performing Tasks On Your Mac So You Dont Have To

Of course, you can click on the + button and add additional conditions for your rule. For example, since the Desktop is really a large folder, I have a Hazel rule that moves any files on my desktop that have been there more than three hours to a designated Junk Folder.

As you can see in the screenshot below, I also added another condition in which Hazel will ignore any file with the name “hold”.

Hazel 5   Hazel   Performing Tasks On Your Mac So You Dont Have To

I also have two similar rules – one set up that will change the dimension size of PNG files that are either greater than 580 pixels in width or height.

Hazel 7   Hazel   Performing Tasks On Your Mac So You Dont Have To

The second part of any Hazel rule is have it perform a certain action or set of actions. As you can see in the screenshot below, Hazel can perform the type of actions we normally do manually, including moving, copying, renaming, opening, or revealing designated files in the Finder.

Hazel 14   Hazel   Performing Tasks On Your Mac So You Dont Have To

For example, you might set up a rule that watches your Public folder for any new files added in the last five minutes.

Hazel 17   Hazel   Performing Tasks On Your Mac So You Dont Have To

I set up another Hazel rule that moves all PDFs added to my Downloads folder to a designated folder in my Dropbox account. I use this rule because I typically read PDFs on my iPad in which I access and open them from the designated Dropbox folder.

I have another rule that sets the color label of individual applications in my Applications folder, red, if they have not been opened in the last 465 days. I activate this rule only when I want to select and delete applications I have not used in a long time.

Hazel 9   Hazel   Performing Tasks On Your Mac So You Dont Have To

And to quickly remove the red color labels, I of course, set up another rule to do just that. Again, I only activate this when I need it.

Hazel 18   Hazel   Performing Tasks On Your Mac So You Dont Have To

The best way to get the most out of Hazel or any automation program is to think about actions that you perform manually on a regular basis. If you give this some thought, those redundant actions can typically be done for you by programs like Hazel, Automator, or another one of my favorite programs, Keyboard Maestro.

Let me know what you think of Hazel and how you use it to manage tasks on Mac.

The comments were closed because the article is more than 180 days old.

If you have any questions related to what's mentioned in the article or need help with any computer issue, ask it on MakeUseOf Answers—We and our community will be more than happy to help.

2 Comments -

macwitty

I use to have Hazel but for some reason forgot about it. Will take a look again and maybe it is time to update my Hazel2 license.

Bakari Chavanu

Macwitty, depending on what you day to day workflow is, Hazel can be very useful in helping automatically manage folders and files coming into your Finder.