Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create Smart Folders in Dock Stacks with Hazel Desktop
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.
  1. 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.
  2. 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"
  3. 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
  4. Make sure you check Delete duplicates in the Hazel menu screen for the New Applications folder.
  5. Drag New Applications to the Stacks area of the Dock. Change your settings as desired.
[robg adds: I haven't tested this one.]
    •    
  • Currently 2.92 / 5
  You rated: 5 / 5 (12 votes cast)
 
[9,479 views]  

Create Smart Folders in Dock Stacks with Hazel | 1 comments | Create New Account
Click here to return to the 'Create Smart Folders in Dock Stacks with Hazel' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create Smart Folders in Dock Stacks with Hazel
Authored by: prokey on May 08, '10 01:31:06PM

Some tweaks to make it look better:

There's a hint on here to remove the shortcut icons from Aliases. This gives it a more "authentic" smart folder look.

For some applications, the alias initially shows up as a grey icon with the scored-out-circle in the center, aka, the no-smoking sign type thing. A killall Dock shell command fixes that. I have added a rule to Hazel to send a shell command 'killall Dock' after creating the alias. It's not as annoying as I thought it might be and it works pretty well.



[ Reply to This | # ]