Blog
A quick Terminal trick for viewing recent items in your Dock.
Do you ever use the Apple menu item “Recent Items”? It can definitely come in handy when you don’t know what to spotlight search or, for the extremely lazy (such as myself), if you don’t want to use keyboard to type into a spotlight search what you are looking for. The basic idea is that it gives you the last 10 documents, applications and servers that you have accessed in an alphabetized list. Very useful.
Now, have you ever wanted a stack on your dock that can do the same thing? Pretty good idea. However, there is no way to do this in the GUI. This is where Terminal comes in. Copy and paste this line into Terminal followed by the enter/return key:
defaults write com.apple.dock persistent-others -array-add ‘{ “tile-data” = { “list-type” = 1; }; “tile-type” = “recents-tile”; }’After that, type killall Dock into Terminal followed by the enter/return key. This will reboot the dock and insert the “Recent Items” folder onto the end of the dock next to the trash. You can move the stack around just like any other stack and if you right click or control click on the stack you can see all the available options for the stack.
Have fun and enjoy!
Posted in Terminal, Tips and Tricks
