How to Add a Recent Items Menu Stack to the Dock of Mac OS X

Apr 15, 2011 - 18 Comments

Adding a Recent Items dock menu item to Mac OS X

You can add a Recent Items menu Stack to the Mac OS X Dock by using a defaults write command. The default is set to “Recent Applications” but once the Dock item exists you can adjust it to feature other recent items too, like Recent Files, Recent Items, Recent Servers.

This is a neat feature that works in all versions of Mac OS X, so let’s show you how to enable it with a defaults string from the command line.

How to Enable a Recent Items Dock Stack in Mac OS X

Launch the terminal found in /Applications/Utilities/ to get started.

Copy and paste the following syntax onto a single line at the terminal prompt, be sure it’s all on the same line, you can type it out if you want to as well but the syntax is a little programmatic in appearance which could make it cumbersome to write out to some users:

defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

That needs to all be on a single line, so if you copy and paste it make sure the command is one string. Hit enter to execute the command.

You will then need to kill the Dock, this allows the change to take effect by relaunching the Dock process:

killall Dock

Now right-click on the newly appeared ‘Recent Applications’ Dock item, it will have appeared next to the Trash icon.

You can change this to be Recent Applications, Recent Documents, Recent Servers, Favorite Volumes, or Favorite Items. If you want more than one, just run the command again at the Terminal.

This menu item will stick around in the Dock as long as you want it to.

If you want to remove the Recent Items menu, just drag it out of your Dock like any other Dock item in Mac OS X.

Neat huh? Thanks to Sean for the submission, if you know of any other cool tricks or defaults commands, be sure to let us know!

.

Related articles:

Posted by: William Pearson in Mac OS, Tips & Tricks

18 Comments

» Comments RSS Feed

  1. OJ says:

    No longer works on Catalina 10.15.3

  2. Peter says:

    Wow this is great. It works in macOS Sierra Version 10.12 Beta too.

  3. Bryan Meyer says:

    Works on OS X El Capitan 10.11.3. Thanks!

  4. Bert Boerman says:

    Fantastic, thanks for sharing this . Makes my life so much easier!

  5. Joe says:

    Cool. Can you do the same for the recent folders list?

  6. ty says:

    Thank you so much i have been googling for this all day and havent found out how to get it but now i have recent applications so thank you so much

  7. Paul says:

    Excellent. The Apple Menu > Recent Items list is useless because it isn’t in reverse chronological order. This is in the proper order and is one less mouse click.

  8. mate says:

    how to display as dictionary and not stack?
    thx

  9. Brotkruemel says:

    CONFIRMED!

    WORKS ALSO IN LEOPARD!!!

  10. David says:

    It worked great, but after I shut my mac off and started it up this morning, it was gone. I did it again, and it showed up twice in my dock. so I guess it was there, but was not showing. Will see if it is there the next time I reboot

  11. Adam Hintz says:

    This seems to work for me, in that I get the dock icon, but nothing gets added to it, seemingly. How often does it update? Do I need to restart?

  12. RevBT says:

    this was awesome. The only thing I wish I could do was have both recent apps and recent documents in the same folder. otherwise it would be sweet, but I just did the terminal thing twice so I have one of each. Thank you.

  13. Patrick says:

    That’s nice but it doesn’t work.
    Here is the output:
    -bash: syntax error near unexpected token `}’

    I just copied the code and it’s only one line.
    What do I wrong?

  14. Gnuut says:

    And what would one do to remove it? Just drag it out of the dock?

  15. Timothy says:

    That is sooooo Cool thanks

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site