Quick Tip: Change the number of recent items in an application

One of the built-in services Apple offers application developers in OS X is a method for listing recent documents that have been opened by that particular application. When implemented, you will see an "Open Recent" option in the File menu of the respective program. This feature can be exceptionally useful; however, there are times when the default number of items listed is not enough.

One of the built-in services Apple offers application developers in OS X is a method for listing recent documents that have been opened by that particular application. When implemented, you will see an "Open Recent" option in the File menu of the respective program. This feature can be exceptionally useful; however, there are times when the default number of items listed is not enough.

Some applications contain a preference setting for the number of recently used items, but others just use the default value of 10 items. To change this number, just enter the following command in the Terminal:

defaults write APPLICATION_DOMAIN NSRecentDocumentsLimit NUMBER

In this command, the "APPLICATION_DOMAIN" is usually the first part of an application's preference file name, such as "com.apple.TextEdit" for the TextEdit application. Change "NUMBER" to the desired number of recent items to list, and press enter. You should not have to supply a password for this to work, and the settings will be saved in the designated application's preferences file for the current user only.

Keep in mind that some applications have their own methods for implementing a Recent Items list, so this may not work in all situations; however, it is worth a shot. I regularly use TextEdit, and expanding the number of recent items to 25 has helped.



Questions? Comments? Post them below or email us!
Be sure to check us out on Twitter and the CNET Mac forums.

Featured Video
6
This content is rated TV-MA, and is for viewers 18 years or older. Are you of age?
Sorry, you are not old enough to view this content.

Everything you can expect at Apple's Sept. 9th event

Apple is expected to throw the kitchen sink at us with new iPhones, iPads, a new Apple TV and MacBooks. We'll breakdown what you can expect to see.

by Brian Tong