I just found this nice little feature to show recent items in Dock. The choice is: recent documents, servers, volumes, items and my all favourite – recent applications.

To enable it you will need to use Onyx. What, you don’t have Onyx? Alright, shhhhh… I won’t tell anyone, go quickly to Titanium software website and get it. It’s free.

Open Onyx, select Parameters > Dock and click on Add next to Recent/Favorite items Stack. Enjoy!
Onyx is NOT required for this, but it is a nice utility…
Just copy and paste the following into Terminal:
* For a “recent items” stack on the right side of the dock:
defaults write com.apple.dock persistent-others -array-add ‘{ “tile-data” = { “list-type” = 1; }; “tile-type” = “recents-tile”; }’
killall Dock
* For a “recent items” stack in the left side of the dock:
defaults write com.apple.dock persistent-apps -array-add ‘{ “tile-data” = { “list-type” = 1; }; “tile-type” = “recents-tile”; }’
killall Dock