Add a Recent Apps Stack to the Mac Dock (Hidden Feature)
The Dock has a secret tile type Apple never exposed in any settings pane: a recents stack that shows your recently used apps, documents, or servers as a live, auto-updating Dock folder. One Terminal command creates it, a right-click configures it, and dragging it off the Dock removes it — no harm done. It works on Ventura, Sonoma, and Sequoia.
Create the stack
Open Terminal (Applications → Utilities) and paste this as a single command:
# add a recents stack to 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
When the Dock returns, look at its right section, near the Trash: a new stack shows your Recent Applications, most recent first. Click it and it fans or grids open like any stack; click an app inside to launch it.
Switch what it tracks
Right-click the new stack and pick from five list types:
- Recent Applications — the apps you've launched lately; effectively a self-maintaining Dock extension for apps you didn't pin.
- Recent Documents — the files you've opened across apps; often the single most useful option.
- Recent Servers — network shares you've connected to; a gift for anyone living on SMB mounts.
- Favorite Volumes — your drives, mounted and clickable.
- Favorite Items — your Finder sidebar favorites, mirrored into the Dock.
The same right-click menu offers fan, grid, list, or automatic views — grid is the practical choice once the list grows past a handful of items.
Run it again for more stacks
Each run of the command adds one more recents tile, and each tile keeps its own list type. A popular combo is two stacks side by side: one set to Recent Applications, one to Recent Documents — your last dozen work items, permanently one click away, maintained by no one. The stacks update in real time as you open things.
Remove a stack
Exactly like any Dock folder: drag it out of the Dock until Remove appears and let go. That's the complete, clean undo — the tile is just an entry in the Dock's persistent-others list, so removing it deletes the entry and touches nothing else. (A Dock preferences reset would also clear it, along with everything else.)
Two details worth knowing
- It reflects the system's recent-items tracking. If you've set Recent items to None in System Settings → Control Center (or cleared recents via the Apple menu → Recent Items → Clear Menu), the stack will be correspondingly empty — same data source.
- It's different from “Show suggested and recent apps in Dock.” That Desktop & Dock checkbox adds a separate mini-section of recent app icons directly to the Dock strip. The recents stack is tidier: one tile, expandable on demand, and it can track documents and servers, which the built-in section can't.
If no stack appeared
The command is quote-sensitive — it must reach the Dock as one piece. Paste it as a single line, straight quotes and all (retype the quotes if your notes app curled them into “smart” quotes, which break the syntax). Then confirm the tile was actually written:
# look for a recents-tile entry in the Dock's config
defaults read com.apple.dock persistent-others | grep recents-tile
If grep prints a match but you see no stack, run killall Dock again — the Dock only reads its preferences at launch. If there's no match, the write didn't take; re-paste the command from this page.
The recents stack is peak hidden-macOS: powerful, shipped, unexposed. Mainspring surfaces 90+ settings like it as labelled toggles — try one, keep it or revert in a click.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Tune how your stacks open
Fan looks great but fits few items; grid navigates subfolders. See how to change Dock stack view — fan, grid, or list to set each stack up right.