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

Modify the number of items in the Open Recent menu System
The following hint is documented elsewhere on the Internet, but not here as far as I can tell. This should work with all versions of Mac OS X.

Ever noticed the "Open Recent" item on the File menu? It records the last opened documents in a given application. By default, the number of items remembered is 10, but that number can be modified as follows:
  • For a system-wide change, run this command in the Terminal:
    defaults write NSGlobalDomain NSRecentDocumentsLimit 20
    Replace 20 with the number of recent items you'd like to have the apps remember.

  • For an application-specific change (for instance, Mail) use this command:
    defaults write com.apple.mail NSRecentDocumentsLimit 20
    Replace com.apple.mail with the proper wording for the app you wish to modify.
[robg adds: This setting works as described, and takes effect in any given app as soon as you re-launch the app after making the change. Note that if you've set an application-specific limit, it will overrule the system-wide setting. If you want the system-wide setting to again take precedence, use defaults delete com.apple.app_name NSRecentDocumentsLimit to remove the application-specific setting.

I believe that you can determine the 'defaults name' for any given application by looking in your Preferences folder, and then just dropping the ".plist" from the file's name. Test it with a defaults read in the Terminal to see what comes up -- so de.codingmonkeys.SubEthaEdit.plist becomes defaults read de.codingmonkeys.SubEthaEdit, for instance. If that fails (i.e. you don't see any output), you can try defaults read | grep Progam_Name in the Terminal. Somewhere in the output, you should see the domain you need to use.

Finally, not all applications use the Open Recent menu item, and this setting won't work in such programs.]
    •    
  • Currently 3.36 / 5
  You rated: 3 / 5 (11 votes cast)
 
[27,411 views]  

Modify the number of items in the Open Recent menu | 4 comments | Create New Account
Click here to return to the 'Modify the number of items in the Open Recent menu' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Modify the number of items in the Open Recent menu
Authored by: newillmeister on Sep 22, '05 10:49:28AM

You can also change these settings for the Finder in the Appearance section of the System Prefs. Here you can specify different limits for Apps, Docs, and Servers.



[ Reply to This | # ]
Modify the number of items in the Open Recent menu
Authored by: englabenny on Sep 22, '05 11:56:57AM

That only has effect in the recents submenu in the apple menu.



[ Reply to This | # ]
Modify the number of items in the Open Recent menu
Authored by: newillmeister on Sep 22, '05 02:08:11PM

oops, i now see what this hint is about, i got sorta confused... i guess i've never noticed 'Open Recent' in any apps other than the obvious before! i'll have to start looking around! and reading the hints better... ^_^



[ Reply to This | # ]
Modify the number of items in the Open Recent menu
Authored by: ckontyko on Jul 21, '06 07:44:13AM

Anyone know how to disable the "Recent Folders" menu item in the Finder's drop down "Go" menu? I've tried everything I can think of in com.apple.finder and NSGlobalDomain.

Thanks.



[ Reply to This | # ]