How do I keep only 5 files in a folder

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

How do I keep only 5 files in a folder Sat Mar 23, 2019 12:17 pm • by heldersales
I back-up my Quicken files to OneDrive -> Quicken. I would like a Hazel rule that keeps track of that folder and keeps only the 5 most recent files.
heldersales
 
Posts: 3
Joined: Thu Mar 14, 2019 10:46 pm

Re: How do I keep only 5 files in a folder Mon Mar 25, 2019 11:05 am • by Mr_Noodle
You can do "If <<some date>> is not among the 5 most recent, Move to trash". You'll have to decide which date attribute most accurately reflects your notion of "most recent".
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion