Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacRumors

macrumors bot
Original poster
Apr 12, 2001
67,900
38,607



macos-finder-icon-250x235.jpg
In a previous how-to, we explained how to add a special stack to your Mac's Dock that enables quick access to recently opened or favorite items.

This unique stack can be configured to show your most recently opened apps, documents, or servers, but what you can't do is make it show all your recent items, regardless of kind.

One solution is to add a recently opened items folder to your Dock instead. The following steps guide you through the process of creating one using Finder's smart folder feature.

  1. Open a Finder window and select File -> New Smart Folder in the menu bar. Alternatively, right-click (or Ctrl-click) the Finder icon in your Dock and select New Smart Folder.
    create-a-recent-items-folder-1.jpg

    In the Finder window that opens, make sure the search header is selected as This Mac, then click the plus icon in the upper right of the viewing area.
    how-to-create-a-recent-items-folder-01.jpg

    Select Last opened date in the first search criteria dropdown.
  2. Select within last in the second dropdown.
  3. In the third and final dropdown, select how far back you'd like the folder to show recently opened items for. Your options are days, weeks, months, and years.
  4. In the input field to the left of your timescale selection, specify the number of days/weeks/months/years of recently opened files to show.
    how-to-create-a-recent-items-folder-02.jpg

    To restrict your recent items folder to a certain kind of file - images, for example - click the plus button to add another row, then select a kind from the second dropdown. (Depending on the kind you select, you may be offered an additional dropdown to further limit the criteria.)
    create-a-recent-items-folder-04.jpg

    Now, hold down the Option key. Note how the plus icon at the end of the row changes to an ellipsis. Click this, and you'll be able to add search parameters that exclude certain items like applications and folders from your recents list.
    create-a-recent-items-folder-03.jpg

    In the second row dropdown, select None of the following are true.
  5. In the third row, first dropdown, select Kind.
  6. In the third row, second dropdown, select the type of item you wish to exclude.
    how-to-create-a-recent-items-folder-05.jpg

    If you want to add more exclusion criteria, hold the Option key and click the ellipsis icon in the first row. When you're done, click Save in the upper right of the viewing area.
    how-to-create-a-recent-items-folder-06.jpg

    In the save dialog that appears, give your smart folder a name, and select your Desktop as the location for your folder. You can also opt to include the folder in Finder's sidebar by checking the box next to Add to Sidebar.
    create-a-recent-items-folder-4.jpg

    Click Save.
    Switch to your Desktop and drag and drop your new smart folder to the right of the the Dock, which will automatically move any existing icons behind the divider to make space for it. (If you like, you can delete the same folder on your Desktop once it's safely docked.)
    create-a-recent-items-folder-5.jpg

    Finally, right-click (or Ctrl-click) the docked smart folder and select Folder in the contextual menu.
    create-a-recent-items-folder-6.jpg
The last step gives your recently opened items folder a distinctive icon in the Dock.

create-a-recent-items-folder-7.jpg

Note that the same contextual menu also provides view and sort options to further customize the folder's behavior.

Article Link: How to Add a Recent Items Folder to Your Mac's Dock
 
Did Apple drop the Finder setting for recent documents in Mojave? Tinker tool used to be able to toggle this without a smart folder.
 
  • Like
Reactions: ignatius345
Very handy tip, I can think of several people I know who will also appreciate this when I share it with them.
Many thanks !
 
Great tip! I'm loving this series.

  1. In the Finder window that opens, click the plus icon in the upper right of the viewing area.
    create-a-recent-items-folder-2.jpg

In this screenshot, wouldn't one want to search "This Mac" instead of just the Desktop? Otherwise it's going to be a pretty narrow set of results....

  1. In the save dialog that appears, give your smart folder a name, and select your Desktop as the location for your folder. You can also opt to include the folder in Finder's sidebar by checking the box next to Add to Sidebar.

You don't have to leave it on your Desktop if you don't want to. I chose to save the Smart Folder to my Documents folder where it's out of the way.

Oh, and if anybody's interested, you can edit the Saved Search by opening it in Finder and selecting "Show Search Criteria" from the little gear menu.

It's also worthwhile while doing the search criteria to add additional filters after you specify the date one. Lots of useful options there like restricting your Kind to Documents to filter out apps. You can stack up these search criteria as you see fit and see the results in real-time as you tweak. Worth futzing with, and you can always create separate smart searches for specific things, like "PDFs from the last 30 days with the name XXXXX" or whatever.

MacBook Pro 2018-12-19 at 10.21.57 AM.png
 
Last edited:
You don't have to leave it on your Desktop if you don't want to. I chose to save the Smart Folder to my Documents folder where it's out of the way.
Or, as he said “(If you like, you can delete the same folder on your Desktop once it's safely docked.)”
 
Or, as he said “(If you like, you can delete the same folder on your Desktop once it's safely docked.)”
You're right, I missed that part. It is handy to keep that .savedsearch file around if you want to edit it, though, and I think you need to keep it somewhere if you want that sidebar shortcut to exist. Interestingly the Dock item is totally independent once you add it, and editing the .savedsearch file has no effect on the dock item.
 
Did Apple drop the Finder setting for recent documents in Mojave? Tinker tool used to be able to toggle this without a smart folder.
No. But Apple's Recent Items doesn't show folders and servers, only applications and files under two different folders in the Dock instead of one.
 
Is there some way to use a NOT in the search filters? For example, if I want to exclude files that have a particular file extension, something like "NOT .o" if I want to exclude all files with extension .o .
 
Awesome tip!! I have a question though... I implemented this and liked the function but it seemed like it would stop working and showing recent files. I think I've figured out it is because I use iCloud Drive and have my Desktop and Documents folders synced with iCloud. When setting up this smart folder it gives me the option to search "This Mac" or "iCloud". Most of my files are within my Documents folder that is iCloud synced but some or not. I have local files also and I use Dropbox and OneDrive for work I do with other businesses that use those services. Dropbox and OneDrive are in my user home folder so for the sake of this smart folder they are "local". Any ideas how I can manipulate the search criteria to include "This Mac" and "iCloud"?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.