Using Hazel to Sort Files by Domain

Hazel is a useful utility, sort of like the unix tools cron and shell combined.

You can create various jobs that operate on a folder (directory) and those jobs have various match criterea and then actions can be performed based on the matches.

Once you have selected a folder to operate on, you can create a rule. This rule will sort files into folders based on where they are downloaded from. It also includes a couple of provisions:

  • Don’t sort things that are < 1hr old
  • Don’t sort things that have an extension of ‘.download’

This gives me a buffer to move something out of my Downloads folder before its sorted and also won’t sort things that are being downloaded by safari (active downloads have that extension).

After sorting, my downloads folder looks like this

Footnotes and References