Most Popular Articles
- Prune Your Time Machine Backups Selectively (01 May 2008)
- Back to My Mac Leads to Recovery of Stolen Mac (10 May 2008)
- Time Machine Exposed! (08 May 2008)
- Hand Coding HTML Is Still in Vogue (25 Apr 2008)
Recent TidBITS Talk Discussions
- SSH failing to launch (3 messages)
- Monitor recommendation? (17 messages)
- OmniFocus: the interface is weak but the project is willing (22 messages)
- Goose Your Network to Gigabit Ethernet (23 messages)
In Take Control of Apple Mail in Leopard, by Joe Kissell, you'll learn how to make your email come and go as it should and easily find the email that you want to read. You'll also get help with Time Machine backups of email and much more. $10.
Published in TidBITS 907. Subscribe today to receive TidBITS in email every Monday.
- Yojimbo 1.5 Released
- Apple Tells Back to My Mac Users to Be Patient
- Boot Camp and Tiger: One Last Warning
- LogMeIn for Mac Released
- Three Handy Tips for iPhoto Organization
- 2007 TidBITS Gift Guide
- Open Source Mac Gaming: 10 Free Games Reviewed
- Take Control News: Three New Digital Photography Ebooks
- Take Control News: Take Control of Upgrading to Leopard Updated
- Bonus Stories for 10-Dec-07
- Hot Topics in TidBITS Talk/10-Dec-07
Clean Up Messy Folders with Hazel
I recently wrote about how keeping backups in BBEdit saved my bacon during a recent server crash (see "BBEdit 8.7.1 Adds Features, Fixes Bugs, Saves Data," 2007-11-08). I ended the piece by commenting that I hadn't realized I was storing over 17,000 files in that BBEdit Backups folder, so I trashed everything from before 2007.
After reading about my situation, Chris Owen of Hubris Communications wrote to tell me about a short cron script he runs every night on his BBEdit backups directory to delete all files older than six months, plus files older than 30 days that are also greater than 500K in size. For those who are or wish to become cron-savvy, here's what Chris sent me. (Modifying this script to work on machines other than Chris's is left as an exercise to the reader.)
#!/bin/bash
find /Temp/Backups/ -mtime +180 -exec rm {} \;
find /Temp/Backups/ -size +500 -mtime +30 -exec rm {} \;
I thought Chris's point was brilliant, but I didn't have time to wade through the Unix man pages to figure out how to set up a cron script. Besides, I've been looking for uses for Noodlesoft's Hazel, a snazzy little utility that watches specified folders and does things with the contents when your criteria are matched.
After 30 seconds of work in the Hazel preference pane to implement both of Chris's rules, my BBEdit Backups folder was cleaner than ever. And thanks to Hazel's constant lookout, I don't have to worry about that folder's contents growing out of control any more.
Needless to say, Hazel can match files on a wide variety of conditions, and it can do a lot more than just move files to the Trash. See the screenshot for the conditions and actions menus, which list all the possibilities.
For anyone who finds themselves needing to manage a regular influx of files - whether that management involves deleting, renaming, importing into iPhoto, or whatnot - Hazel is the easiest method I know about. Hazel 2.1.1 costs $21.95 and is available for 14-day trial; it's a 1.6 MB download and requires Mac OS X 10.4 Tiger or Mac OS X 10.5 Leopard.
READERS LIKE YOU! Support TidBITS with a contribution today!<http://www.tidbits.com/about/support/contributors.html>
Special thanks this week to MWP Books, Alan B. Combs,
Tom Fortmann, and Neil Faiman for their generous support!
Bookmark at: del.icio.us | digg | reddit | Slashdot



