Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Add a 'recent things' stack to the Dock System 10.5
You can add a Recent Applications stack to the Dock. To do so, open Terminal and type this command: After that, type killall Dock to restart the Dock and see your new folder. The only thing is that I haven't found a way to have it show as a fan, it only shows in tile view. But it is already a nice trick.

[robg adds: Once the stack is created, control-click on it to reveal a contextual menu that lets you pick between recent applications, documents, servers, volumes, and items. Note that I've edited this hint to reflect the method shown by mithras in this comment to the Create a System Preferences stack hint.]
    •    
  • Currently 3.44 / 5
  You rated: 3 / 5 (16 votes cast)
 
[148,308 views]  

10.5: Add a 'recent things' stack to the Dock | 56 comments | Create New Account
Click here to return to the '10.5: Add a 'recent things' stack to the Dock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Add a 'recent things' stack to the Dock
Authored by: blukens on Nov 14, '07 07:59:48AM
Okay, I'm going to be totally vain here and take credit for that "defaults" command. It's definitely my Ars post that mithras is referring to. So, uh, go me?

[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: mantrid on Nov 14, '07 08:12:30AM

Oh come on! If a feature exists. it's just a matter of discovering it, and there are only so many ways to execute a given command.

Your comment was posted Nov 4 (which "mithras" credited you with when posting Nov 5).

Considering this hint was submitted on Nov 1, I would say "manum" is ahead of you.

You know that Conan bit where the guy gets the stamp on his face?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: blukens on Nov 14, '07 08:40:20AM

Hey, I'm just kidding around here. Clearly the real credit goes to manum, or whoever discovered the hack originally.

I just thought it was cool that my own slight contribution was kinda sorta used on the site. That's all. Sure, anyone who's familiar with "defaults" could have done the same thing, but I did spend a little time figuring it out. And if mithras can get credit for passing it along, I should get a little something, right? ;)



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: robg on Nov 14, '07 08:53:49AM

Credit granted :), and if this hint ends up winning the contest, well, I'm technically not sure what would happen ... we'd have to go to the judges on that one (saw an iMac in thirds?). I'm sure we'd figure something out!

regards,
-rob.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: JaxMyers on Nov 14, '07 08:19:21AM

This is the best hint I've seen so far for Leopard! Is there any way to make two of these stacks, one for Apps and one for Documents?

I really like the fact that you can make a stack without having a folder of aliases sitting around. This is almost like the ability to make smart folder stacks which doesn't seem to work by the drag and drop method.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: blukens on Nov 14, '07 08:22:41AM

You can make as many as you want. Just run the "defaults" command multiple times. Each time it's run, it adds a new icon to the dock. Then "killall Dock" to get the new ones to appear.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: 5chm31din6 on Nov 14, '07 08:53:54AM

Okay, so how do we REMOVE it if we decide we don't like it?

---
Power corrupts. PowerPoint corrupts absolutely.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: sabi on Nov 14, '07 09:09:22AM

Same way you remove anything else from the Dock, drag it out or pick "Remove from Dock" from the contextual menu.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: Whosawhatsis on Nov 23, '07 10:23:05AM

Dragging it out didn't work for me, but "Remove From Dock" works.

---
I was offered a penny for my thoughts, so I gave my two cents... I got ripped off.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: pwharff on Nov 14, '07 09:06:58AM

Wonderful Hint! Does anyone know how to sort this, more specifically I want to sort so my most recently used App is the first icon.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: vincentvw on Nov 14, '07 09:16:14AM

Just a note, because I didn't get it at first. The default view is "recent applications," to change it to documents, servers, favourite items or volumes, right-click on the dock-icon and tick the option.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: 5chm31din6 on Nov 14, '07 09:16:31AM

Oh, duh. I had an uncaffeinated moment. I guess I thought the Terminal command made it persistent. Of course, dragging it was too obvious for me today. :) Thanks!

---
Power corrupts. PowerPoint corrupts absolutely.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: pwharff on Nov 14, '07 12:05:23PM

No worries mate, we ALL have those days.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: zane on Nov 14, '07 03:47:04PM

Mentioned in Mithras' link comment, the number of recent items shown in the stack is reflected by your System Preferences/Appearance setting, which governs Apple Menu's Recent Items. That is, changing this preference will change both your Apple Menu and Dock stack recent items.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: mmouse on Nov 15, '07 10:32:01AM

Great tip -- anyone know where it is getting the items for the "favorite items" list? It's not the Favorites folder in ~/Library...

---
--mmouse



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: hedgeman on Nov 15, '07 11:48:59AM

It's taking them from the "Places" list in your Finder sidebar, which used to be favorites in Tiger.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: smyklar on Nov 25, '07 07:53:51AM

Try here:

~/Library/Preferences/com.apple.recentitems.plist



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: panamajack on Nov 15, '07 05:56:31PM

Fantastic tip ! Is there any way to add one of those nifty 3D folder icons to lie persistently on top of the "stack" (realizing that it isn't a normal "folder").




[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: brucelabruce on Nov 18, '07 10:56:55AM

I'd like to know if this is possible too, otherwise we're still lumbered with the confusing ever changing stacks icons...



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: JaxMyers on Nov 16, '07 09:43:12AM

Does anybody know if there is a way to not include certain items like printers or the "installer" app. Basically things I would never need to access form the dock. That way I would have room for a few more useful applications. As it is, it's pretty useful though.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: diskostu on Nov 16, '07 11:11:13AM
I used a similar command:

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

So I replaced "tile" by "fan". After "killall Dock", my Dock was gone, even after a clean reboot. Any idea? Any help is greatly appreciated.

[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: diskostu on Nov 16, '07 11:14:02AM
Ah, I figured it out by myself. In case anyone has the same problem, just type

defaults delete com.apple.dock persistent-others

and the Dock should appear again.

[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: soulbarn on Nov 16, '07 03:06:10PM

Ack! My dock (and cmd-tab) vanished after trying out the tip. and the solution posted (defaults delete com.apple.dock persistent-others) doesn't work! What to do?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: soulbarn on Nov 16, '07 03:33:41PM

A restart brought the dock back. But not with the recent items stack. I'm going to try again...



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: shockthealien on Feb 05, '10 06:54:34AM

The same happened to me but a restart didnt bring it back.

I tried to use some newer code from lower down the thread but when I do "killall dock" it says "No matching processes belonging to you were found"

No I have no dock or dashboard or expose or alt+tab or active corners...

Please help



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: antiorario on Nov 17, '07 02:46:05AM
So I replaced "tile" by "fan". After "killall Dock", my Dock was gone, even after a clean reboot. Any idea? Any help is greatly appreciated.
My suggestion would be to either reset the dock by erasing ~/Library/Preferences/com.apple.Dock.plist or pick an older version of it using Time Machine, then doing a killall Dock in Terminal.

[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: antiorario on Nov 17, '07 02:51:53AM

Great hint, but I noticed a funny thing: using a localization of Mac OS X other than English, the context menu gets properly localized, while the stack title doesn't. I wonder why...

On a side note, I created two of these special stacks (I had tried just to see if it was possible), so I don't have to switch back and forth between recent apps and recent documents. Seems to work well.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: jpb0104 on Nov 17, '07 10:50:46AM

Ok nobody answered the question whether we can put two different ones on our dock?

Another question: The list of recent documents leaves deleted items in that list? That shouldn't happen right?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: Netzach on Nov 17, '07 03:23:07PM

It works. I have right now both Recent Applications and Recent Documents in my dock.

---
//Intelligence has it's boundaries, but stupidity is unlimited.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: BoxsterFan on Nov 29, '07 05:19:03AM

After using this for a while I now have two fDesktop folders in my Favorite Items list. I have deleted and re-created the favorites stack, but this persists. Is there any way to correct this?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: WDFlores on Nov 30, '07 07:28:20PM

Hello,

This happened to me as well. I tried all the voodoo I knew to reset it including flushing out the caches, deleting preference files, etc., but to no avail. And then...

I realized that the multiple Desktop entries occurred under Places in the sidebar of Open File dialogs as well.

To reset everything: I just dragged all those Places items out (from a Safari Open File dialog); dragged out same items from the sidebar of an open Finder Window; then added them again via the Finder's sidebar preferences sheet (clicking on the checkboxes for Home, Desktop, Applications, and Documents).

- WDF



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: Jyrki on Dec 04, '07 08:20:04AM

To move Recent Applications Stack to the left part of the dock, replace persistent-others with persistent-apps, like this:
defaults write com.apple.dock persistent-apps -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
and after that killall Dock

-jyrki



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: robogobo on Dec 04, '07 02:36:21PM

really great hint. This is the closest thing to the way Stacks was supposed to work.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: robogobo on Dec 04, '07 02:49:11PM

If I choose "Recent Servers", I get a blank Dock icon, and all the volumes inside also have blank icons. Anyone else see this?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: LMP on Dec 08, '07 09:04:39AM

Yes. I have the same behavior.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: magnamous on Mar 04, '09 10:17:18PM

I get a blank dock icon no matter which of the "recent" items I choose. The two "favorites" items work...

10.5.6



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: magnamous on Mar 04, '09 10:22:07PM

I just figured it out. I had "recent items" all turned off in System Preferences. Turn them back on and the blank tiles start becoming populated. (Silly me.)



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: robogobo on Dec 09, '07 09:06:57AM

"Favorties" is not accurate- the Favorite Volumes actually whatever is currently under Devices in the sidebar, NOT the same as Favorite Servers. This confused me for a while, as I was adding unmounted volumes to the Favorite Servers list and not seeing them in the Dock folder. Only mounted volumes will show in this folder.

The same applies to Favorite Items. This is actually Sidebar Places. I assume this reflects pre-release Sidebar terminology.

This is a bummer, since I'm still looking for a way to have unmounted volumes in the Dock mount and open in a stack. Aliases don't work. I'm still not sure why Apple made this stuff so inconvenient.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: meatleg on Jan 06, '08 07:55:34AM
if only there was a way to add the clever dock stack icons provided by optica-optica
http://optica-optima.blogspot.com/2007/11/drawers-icon-1.html
that would rock even harder

[ Reply to This | # ]
Drawers Icon
Authored by: solipsism on Jan 18, '08 07:56:52AM

Is there anyway to add a Drawers icon to these so they make a little more sense in the Dock?



[ Reply to This | # ]
is there a way to make icon previews show up?
Authored by: dlgraves on Jan 19, '08 04:35:30PM

Not sure if it's just me, but using this hint for a "recent documents" stack shows only the generic icon, not Leopard's document preview icons... any way to fix?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: macfreek57 on Jan 22, '08 08:30:20PM
I made this handy (and simple) AppleScript to make adding Recent Items stacks to the dock easier. It displays a dialog that asks if you want a Recent Items stack, which you can accept or reject, then executes the proper terminal command and kills the dock. It even gives you the option of which side you'd like it on. Enjoy.
set dialogText to "Would you like to add a Recent Items icon to your Dock?"
set appSideScript to "defaults write com.apple.dock persistent-apps -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }';killall Dock"
set docSideScript to "defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }';killall Dock"

display dialog dialogText buttons {"No Thanks", "Yes! Left Side, Please!", "Yes! Right Side, Please!"} default button 1

if button returned of result is "Yes! Left Side, Please!" then
	do shell script appSideScript
else
	if button returned of result is "Yes! Right Side, Please!" then
		do shell script docSideScript
	end if
end if
Edited on Feb 03, '10 09:13:56PM by robg


[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: xhints_ on Jan 25, '08 01:44:04PM

You have too many quotes – you put a string inside a string which really doesn't work.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: dj60 on Jan 31, '08 09:54:41AM

New to all of this scripting.. when compling this code I'll get an error msg..

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

On this line I'll get the msg "Syntax Error Expected end of line, etc. but found identifier" Using the apple scripting tool, the word "tile" here is highlighted. { "tile-data" = { "list-type" ...........

where did i go wrong?


Thanks
dj



[ Reply to This | # ]
Script update
Authored by: xhints_ on Feb 11, '08 12:08:47PM
Here's a neater version that works:
global abutton

set cbutton to "Cancel" -- cancel button
set abutton to "Applications Section" -- app side button
set dbutton to "Documents Section" -- docs side button

display dialog "Add a Recent Items stack to the Dock?
This will temporarily disable both the Dock and Dashboard" buttons {cbutton, abutton, dbutton} default button 3
set rbutton to the button returned of the result
if rbutton   cbutton then addStack(rbutton)


on addStack(button)
	if button = abutton then
		set side to "apps"
	else
		set side to "others"
	end if
	do shell script ("defaults write com.apple.dock persistent-" & side & " -array-add '{ \"tile-data\" = { \"list-type\" = 1; }; \"tile-type\" = \"recents-tile\"; }';killall Dock")
end addStack
Edited on Feb 03, '10 09:13:35PM by robg


[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: macfreek57 on Feb 04, '08 02:42:39PM
Very sorry. The site removes the appropriate backslashes when I copy and paste the text. Let's try again.
set dialogText to "Would you like to add a Recent Items icon to your Dock?"
set appSideScript to "defaults write com.apple.dock persistent-apps -array-add '{ \"tile-data\" = { \"list-type\" = 1; }; \"tile-type\" = \"recents-tile\"; }';killall Dock"
set docSideScript to "defaults write com.apple.dock persistent-others -array-add '{ \"tile-data\" = {\"list-type\" = 1; }; \"tile-type\" = \"recents-tile\"; }';killall Dock"

display dialog dialogText buttons {"No Thanks", "Yes! Left Side, Please!", "Yes! Right Side, Please!"} default button 1

if button returned of result is "Yes! Left Side, Please!" then
	do shell script appSideScript
else
	if button returned of result is "Yes! Right Side, Please!" then
		do shell script docSideScript
	end if
end if
Edited on Feb 03, '10 09:14:38PM by robg


[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: macfreek57 on Feb 04, '08 02:44:55PM

Sorry about that. I've reposted the script and doubled the forward slashes which were being removed by the site. It should work now.



[ Reply to This | # ]
Add a smart folder to Stacks
Authored by: badolina on Feb 05, '08 01:35:06PM

Hi,
This is all nice and good. However, far from being satisfactory.
Recent items includes many items I do not care about. I would rather have recent items from my Documents folder or any other folder. That's what smart folders are for.

However, there is no way to add a smart folder (or any other folder) to Stacks. It will create a folder, but will not open up like it should be doing. Is there any way I miss to do that?



[ Reply to This | # ]
Working in 10.5.2?
Authored by: unfletch on Feb 11, '08 09:34:32PM

I think today's 10.5.2 update may have killed this hint. Can anyone confirm?

I had the recent things stack in 10.5.1, removed it a couple of weeks ago, updated to 10.5.2 today, and now I can't seem to get the stack to reappear with the defaults command in the article.



[ Reply to This | # ]
Working in 10.5.2?
Authored by: jdb8167 on Feb 26, '08 11:30:03AM

Works for me in 10.5.2. Try deleting all your persistent-others as per the hints above. That will delete all your stacks and docked folders though.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: richmundslut on Mar 29, '08 06:31:31AM

Is there a way to only include applications which are not already in the dock?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: dandj on Mar 31, '08 04:04:38AM

Make a folder containing aliases of the applications you want and drag it to the dock. It will become a stack.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: mthomasdo on Apr 01, '08 07:24:01PM

How about a way to have a "most commonly used applications" stack?



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: finnson4 on Apr 11, '08 04:46:35PM

Has anyone found a way to make the stack show up as a fan instead of the default grid? I really like this tip, but I would like to use the fan option instead.



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: ryan.axiom on Apr 25, '08 01:06:58PM

I believe it will be impossible to make this a fan. The key for the fan property is the "showas" key and you can assign a value to it (usually 1 is fan, 2 grid, 3 list and 4 is automatic), but that value has no effect on the display style for the recents stack.
You can experiment with this on your own, but the dock automatically overwrites your changes eliminating the entire showas key for the stack you are looking at after being killed and closing the text document editor that I was using.

You can view the text of the dock plist by opening yourusername/Library/Preferences/com.apple.dock.plist You can use either the preference editor or your favorite notepad program. If you are using the text editor I would search for the name of a stack near the recents stack and it will help you find it.

Good luck



[ Reply to This | # ]
10.5: Add a 'recent things' stack to the Dock
Authored by: stitch626 on May 11, '08 03:59:26PM

Hi, anyway to have something similar but with running things????
thanks



[ Reply to This | # ]