Hazel Cheatsheet
Rule Conditions
Condition Description
Name Matches filename patterns
Extension File type matching
Date Added When file appeared
Date Modified Last modification time
Size File size comparison
Kind File kind (image, document)
Tags Finder tags
Contents Text content matching
Source URL Download source
Subfolder depth Nesting level

Matching Operators

Operator Example
contains Name contains “invoice”
starts with Name starts with “IMG”
ends with Extension ends with “pdf”
matches Name matches regex pattern
is Kind is PDF Document
is not Tag is not “processed”
Rule Actions
Action Description
Move Move to folder
Copy Copy to folder
Rename Rename with patterns
Add tags Apply Finder tags
Set color label Apply color
Sort into subfolder Auto-organize by date/type
Archive Compress to ZIP
Import Import to app (Photos, iTunes)
Trash Move to trash
Run shell script Execute custom command
Run Automator workflow macOS automation
Open Open with application

Rename Patterns

Token Expands To
{name} Original filename
{extension} File extension
{date} Current date
{created} Creation date
{1} First regex match group