Growth Hacker

Internet marketing is my area of expertise. Past consulting clients include eBay, CafePress, DocuSign, myfab, and DeepDyve. Visit my consulting site at Market Extend.
← Back to blog
Auto Sort Files into Sub Folders with Hazel
May 29, 2012 Jamie Shiller Automation

Hazel ( is a Mac automation app that, among many other things, can be used to automatically move files into sub folders based on filenames. Some great tutorials already show how to do this using the “Created Date” of a file. Here are a few:

What if you’re doing an expense report? It’s likely that your expenses may be for the previous month so using the created date won’t help you as the created date will be the present date. Instead the answer is to use “Custom Tokens”.

The video below shows how to setup file sorting in Hazel based on custom tokens.

Here’s the naming convention I reviewed in the video:


2012-04 – work expense – dropbox.pdf
2012-05 – work expense – nmodal.pdf

Move Files into Sub Folders:

2012-04 – work expense – dropbox.pdf


Test Expenses –> 2012-04 – work expense

2012-05 – work expense – nmodal.pdf


Test Expenses –> 2012-05 – work expense

View comments →