Adding Recent Applications to your Dock
Recent Items Stack
To accomplish this feat, simply copy and paste the line below into Terminal.
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
Once you’ve completed that command, type “killall Dock” to relaunch your dock with the new stack.
Enjoy!!!
Article from Appstorm.net