Create Smart Folders in Dock Stacks with Hazel
Sep 04, '09 07:30:00AM
Contributed by: prokey
Here's a workaround to making a Smart Folder stack. You can probably use Folder Actions to accomplish this in Snow Leopard, since Apple added the Date Created option to Spotlight search. I prefer to use Noodlesoft's Hazel, however.
- Create a new directory and subdirectory for handling your Hazel-driven dock stacks. (~/SmarterFolders/New Applications). I made SmarterFolders to contain New Applications, the folder which will later be a stack of its own.
- Create the first Hazel rule for the /Applications directory, and make it look like this. The Growl notification reads: File is new. An alias has been created in New Applications.
All Conditions met:
- Date Added is Today
- Comments do not contain NewApp
Do the following:
- Make Alias in New Applications
- Send Growl notification: file is new. An alias has been created in New Applications.
- Add Comment "NewApp"
- Create the second Hazel rule for the ~/SmarterFolders/New Applications directory, and make it look like this. The Growl notification reads: file is 2 weeks old. Alias has been moved to Trash.
All Conditions:
- Date Created is not in the last 1 Week
Do the Following:
- Move file to Trash
- Send Growl notification
- Make sure you check Delete duplicates in the Hazel menu screen for the New Applications folder.
- Drag New Applications to the Stacks area of the Dock. Change your settings as desired.
[robg adds: I haven't tested this one.]
Comments (1)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20090829105236294