How to add a "recent or favorite items stack to MacBook dock"

In Mojave I could copy and paste this terminal command to add a recent or favorite items stack to the dock. The code and instructions were posted on macrumors April 2, 2018.


  1. Copy the following command text and paste it into Terminal at the prompt, then press Enter: defaults write com.apple.dock persistent-others -array-add '{"tile-data" = {"list-type" = 1;}; "tile-type" = "recents-tile";}'; killall Dock

The output looks like this


Does anyone know if this works for Sonoma?




MacBook Air 13″, macOS 14.7

Posted on Mar 7, 2025 8:31 PM

Reply
7 replies
Sort By: 

Mar 13, 2025 1:55 AM in response to MAW01

These terminal commands manipulate the Dock’s preferences, and although they should work as intended, changes in macOS versions might affect how they function. If you're using a newer version of macOS, the behavior might differ.


Reply

Mar 10, 2025 6:22 AM in response to MAW01

MAW01 wrote:

In Mojave I could copy and paste this terminal command to add a recent or favorite items stack to the dock. The code and instructions were posted on macrumors April 2, 2018.

Copy the following command text and paste it into Terminal at the prompt, then press Enter: 1. defaults write com.apple.dock persistent-others -array-add '{"tile-data" = {"list-type" = 1;}; "tile-type" = "recents-tile";}'; killall Dock
The output looks like this
https://images.macrumors.com/t/pWvdF94BkTKqquKVQM21Eb1BN88=/400x0/article-new/2018/03/select-recent-or-favorite-item-dock-stack-800x522.jpg?lossy
https://discussions.apple.com/content/attachment/bb10a27c-17de-4b7c-93a7-15877ce3b770

Does anyone know if this works for Sonoma?




?


try and see— what are your results. Post back your conclusion...


if you Control click in the Finder sidbear—will give the option





Reply

Mar 13, 2025 8:59 AM in response to MAW01

MAW01 wrote:

I tried it and it did nothing.



To be proactive you can file a bug report / submit your Apple Feedback here:  Product Feedback - Apple



The current stable release of Sequoia  including bug fixes,  security updates  is macOS 15.3.2 

Keep your Mac up to date - Apple Support

Keep your Mac up to date - Apple Support



Reply

Mar 19, 2025 2:57 AM in response to MAW01

You can still add a Recent or Favorite Items Stack to your MacBook Dock with this Terminal command:


bash

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

Just copy and paste it into Terminal, press Enter, and your Dock will refresh with the new stack!

Reply

How to add a "recent or favorite items stack to MacBook dock"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.