Adding Flexible Recent Items Stack to Mac Dock

nadeem.shabir | | Sunday, March 30th, 2008

Here’s a useful little trick, you can add a special Recent Items stack to your dock which behaves differently to normal stacks. It allows you to choose between Recent Applications, Recent Documents, Recent Servers, Favourite Volumes and Favourite Items … as shown in this screen shot:

To enable this you need to open a terminal window and copy the commands below into it:

  1.  
  2. #this command adds the special recent items stack to your dock
  3. defaults write com.apple.dock persistent-others -array-add ‘{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }’
  4.  
  5. #this is optional, adds highlight to item you hover over in stack
  6. defaults write com.apple.dock mouse-over-hilte-stack -boolean YES
  7.  
  8. #restart the dock (capitalisation is important here!)
  9. killall Dock
  10.  

Once done you’ll have a nifty little Recent Item’s stack, and I must confess I really like the highlight feature.

,

9 Comments »

  1. I got this error:
    -bash: syntax error near unexpected token `}’

    Comment by John Clark — March 30, 2008 @ 4:10 pm

  2. LiveWriter has helpfully turned your single quotes into smart 6 and 9 quotes in command 3. This stops it working if you just copy and paste into terminal.

    Other than that – Thanks :-)

    Comment by Rob Styles — March 30, 2008 @ 6:31 pm

  3. Thanks for the help…It now works great.

    Comment by John Clark — March 31, 2008 @ 5:29 pm

  4. That is utterly awesome! I love it, and like you, I especially like the highlighting. Oh, and thanks to Rob for explaining the quotes thing.

    Comment by Rhys — April 2, 2008 @ 7:56 pm

  5. After my last Restart all of my Favorite Items are duplicated!! What would cause this to happen?
    I deleted the duplicates in the Finder Places pane, however there are still 2 desktop icons in the Recent Items folder…???

    Comment by John Clark — April 4, 2008 @ 10:47 pm

  6. hi. i’m not a computer whiz so i don’t really know how to do this, but do you just copy the whole thing into the terminal?

    Comment by Esther — September 19, 2008 @ 9:34 pm

  7. Esther,
    just copy each of the three commands in your terminal, dont copy the three lines that begin with # these are just comments.

    So if you want the recent items tile paste the following line into your terminal and press enter:

    defaults write com.apple.dock persistent-others -array-add ‘{ “tile-data” = { “list-type” = 1; }; “tile-type” = “recents-tile”; }’

    If you want the highlight when you hover over an item paste the following line into the terminal and press enter:

    defaults write com.apple.dock mouse-over-hilte-stack -boolean YES

    finally you have to paste this line into the terminal and press enter in order for the changes to take effect:

    killall Dock

    … I hope that clarifies things.

    Comment by nadeem.shabir — September 20, 2008 @ 6:32 am

  8. I did this and it woks, but the Dock shows only recent application. I want only recent Documents/files.. how do we do that ?

    Comment by Aman — December 10, 2008 @ 3:32 pm

  9. [...] Virtual Chaos – Nadeem’s blog Tags: Dock, Hack, Stack, Terminal ← 4-finger Multi touch breaks Macbook [...]

    Pingback by fifty eight | 58 | Recent and Favorite Items Stack — February 21, 2009 @ 4:40 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress | Theme by Roy Tanck