Open Enclosing Folder on Mac: All Files Explained
In this article
To open the folder that contains a file on macOS, right-click (or Control-click) the file and select "Open Enclosing Folder" from the context menu, or press Command+R while the file is selected in Finder. This instantly reveals the file's parent folder in a new Finder window, showing all files stored in that same location.
What "Open Enclosing Folder" Actually Does
In macOS, every file lives inside a folder (also called a directory). The "enclosing folder" is simply the folder that directly contains the selected item. When you use this command, Finder jumps to that folder and highlights the file you started from, so you can see it in context with its neighbors. This is especially useful when you have a file open in an app (like a PDF in Preview or a document in Pages) and want to locate it on your hard drive without manually navigating through nested folders.
The command appears in several places:
- Finder context menu: Right-click any file or folder and choose "Open Enclosing Folder."
- Keyboard shortcut: Select a file in Finder and press Command+R (this is the same shortcut used for "Reveal" in some contexts).
- Open and Save dialogs: When a file is listed in an app's Open dialog, right-click it and select "Open Enclosing Folder" to jump to it in Finder.
- Spotlight results: Right-click a search result in Spotlight and choose "Open Enclosing Folder" to see where that file lives.
Why You Might Need This Command
The primary use case is finding a file you're currently working on. For example, you download an attachment from Mail, open it in Preview, and later want to move it to a project folder. Instead of remembering where you saved it, you can use "Open Enclosing Folder" to see its exact location. It also helps when you want to organize files: after opening a document, you can quickly reveal its folder and drag related files together.
Another common scenario is troubleshooting. If an app is reading a configuration file or a plugin, you might need to locate that file to edit or delete it. Using the command from the app's own interface (if it offers a "Show in Finder" option) or from Spotlight saves time compared to guessing folder paths.
How to Use It: Step-by-Step
- Locate the file you want to find. This could be in Finder, Spotlight, or an app's Open/Save dialog.
- Right-click (or Control-click) the file. If you're using a trackpad, a two-finger tap works.
- From the context menu, select Open Enclosing Folder.
- A new Finder window opens showing the folder that contains the file. The file itself will be highlighted (selected) so you can immediately see it.
If you prefer the keyboard, select the file in Finder and press Command+R. This performs the same action without needing the mouse.
What to Do If the Command Is Grayed Out or Missing
Sometimes the option appears grayed out or doesn't show up at all. Here are the most common reasons and fixes:
- You're in a special view: If you're in a Finder search (like "All My Files"), the file might not have a real folder path. Press Command+R anyway, or first navigate to the actual location via the search result's path bar.
- You're in an app's Open dialog: Some apps disable the contextual menu. Instead, try dragging the file from the dialog to a Finder window, or use the keyboard shortcut Command+R if the file is selected.
- The file is on a network volume or in iCloud Drive: If the file is stored in iCloud and not downloaded locally, the option may be unavailable until you download it. Right-click and choose "Download Now" first.
- Finder preferences: Ensure you haven't disabled contextual menus. Go to Finder > Settings > Advanced and check "Show all filename extensions" if you want to see extensions, but that doesn't affect this command.
Alternative Ways to Reveal a File's Folder
If "Open Enclosing Folder" isn't available, or you prefer another method, macOS offers several alternatives:
- Show Original: If the file is an alias (a shortcut), right-click and choose "Show Original" to jump to the actual file's folder.
- Get Info: Right-click the file and select "Get Info" (or press Command+I). The "General" section shows the full path under "Where." You can copy that path and use Go > Go to Folder (Shift+Command+G) in Finder.
- Path Bar: In Finder, enable the path bar by pressing Option+Command+P. This shows the folder hierarchy at the bottom of the window, and you can click any folder to jump to it.
- Drag to Terminal: Drag a file into a Terminal window to get its full path, then use that in Finder's Go to Folder.
Common Misconceptions and Related Commands
A frequent confusion is between "Open Enclosing Folder" and "Reveal in Finder." They are essentially the same action, but "Reveal in Finder" is the wording used in many apps (like Safari's Downloads or Mail's attachments). Both open the folder and highlight the file. Another related command is "Open With," which opens the file in a different app, not the folder.
Some users expect "Open Enclosing Folder" to show the folder in the same window, but it always opens a new window by default. To change this, you can hold the Option key while selecting the command, which will close the current window and open the folder in the same one. This works in most contexts.
Also note that the command works on folders themselves. If you right-click a subfolder and choose "Open Enclosing Folder," it will reveal the folder that contains that subfolder, which is useful for seeing sibling folders.
Frequently Asked Questions
Does "Open Enclosing Folder" work on files in iCloud Drive?
Yes, but only if the file is downloaded locally. If the file shows a cloud icon (not downloaded), right-click and choose "Download Now" first. After it downloads, the command becomes available and will open the iCloud Drive folder on your Mac.
Why doesn't Command+R work in some apps?
Command+R is a system shortcut in Finder, but apps may override it for their own purposes (like reloading a page in a browser). In those cases, use the right-click menu instead. In Finder itself, it always works.
Can I open the enclosing folder from the Terminal?
Yes. If you're in Terminal and know the file's path, type open . to open the current directory in Finder, or open /path/to/folder to open a specific folder. To reveal a specific file, use open -R /path/to/file, which opens the folder and highlights the file.
Is there a way to see the full path without opening the folder?
Yes. In Finder, select the file and press Option+Command+P to show the path bar at the bottom. Alternatively, use "Get Info" (Command+I) and look at the "Where" field. You can also drag the file into a Terminal window to see its full path.
What if I want to open the enclosing folder in a new tab instead of a window?
Hold the Command key while selecting "Open Enclosing Folder" from the context menu. This will open the folder in a new Finder tab instead of a new window, provided you have tabs enabled in Finder (which is the default).
Does this command work on external drives or network volumes?
Yes, it works on any mounted volume, including external hard drives and network shares. The folder will open in Finder just like a local folder. If the network volume is disconnected, you'll get an error message.