Filed under: Terminal Tips
Terminal Tips: Add recent applications as a Stack on Dock

defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }' Once you type in the command, you will need to restart the Dock by typing "killall Dock" and pressing enter. If you decide you don't want the newly created Stack, just drag it off the Dock like any other Stack.
Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.
Get a WordPress.com Blog
![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 3)
AdamY said 1:06PM on 9-16-2008
Awesome!
Got one for "Recent Documents"?
Reply
holo said 1:14PM on 9-16-2008
Do the above trick, then right click (ctrl-click) on the new stack, and change the option to Recent Documents
holo said 1:14PM on 9-16-2008
Do the above trick, then right click (ctrl-click) on the new stack, and change the option to Recent Documents
Domino said 1:39PM on 9-16-2008
Clicking and holding down on the stack gives you an option for Applications, Documents, Servers and Favorite Volumes and Items.
AdamY said 2:28PM on 9-16-2008
Is there a way to make it so there are two discrete stacks, one for "Recent Documents" and one for "Recent Applications"
Thank you both by the way, that was great!
Sara said 5:56PM on 9-16-2008
Yep, just go back into terminal and type in the same commands and you'll get a second stack next to the first one you created for "Recent Applications." Right click on the new stack and select "Recent Documents."
GadgetMan said 2:52AM on 9-17-2008
Doesn't work for me.
Copied and pasted into Terminal, didn't say anything then typed killall dock and it says:
No matching processes belonging to you were found
Please help!
Thanks,
GadgetMan
Art Vandelay said 1:21PM on 9-16-2008
This is a great tip THANKS!
Ill be passin this one around the office.
Reply
Pierce said 1:28PM on 9-16-2008
http://v2.sandbox.tuaw.com? an update is imminent!
Reply
Randy said 1:33PM on 9-16-2008
This is great, and a time saver. Thank you, Cory.
Reply
Rick M said 1:40PM on 9-16-2008
Awesome tip! Thanks!
Reply
chuck said 1:50PM on 9-16-2008
If only we could use Smart Folders for Stacks. It is one of the obvious missing features in Leopard...
Reply
fabian said 1:54PM on 9-16-2008
can I have two of these stacks in the dock?
Reply
Callen said 2:02PM on 9-16-2008
Yes, just repeat the trick as many times as you want.
Lori said 2:00PM on 9-16-2008
Any idea how many items it will decide are "recent"? (Or is there a way to set the # on these?) On my iMac its listing 10 items, on my MBP its listing 20 items.
Reply
Carlos said 6:42PM on 9-16-2008
System Preferences | Appearance should have what you're looking for.
Brassen said 1:37PM on 9-18-2008
@Carlos
Thank you!!
Rae Whitlock said 2:03PM on 9-16-2008
Posted here on TUAW almost a year ago . . .
http://www.tuaw.com/2007/11/16/tuaw-tip-put-a-recent-items-stack-in-your-dock/
Reply
Big John said 2:22PM on 9-16-2008
Didn't see it then or glossed over it.
Either way, who cares?
alex keeny said 2:05PM on 9-16-2008
Um, what do I do if my dock no longer runs after running this command?
Reply