While copying a file on your Mac is as easy as selecting the file and pressing “Command + C” on your keyboard, copying a file’s path does not seem to be that easy. While there are various ways to reveal the path of a file on a Mac, here we list there of them.
Using Terminal to Reveal the Path of a File
Many of the commands in the Terminal require you to enter in the full path of the file, and perhaps that is why the company has included the ability for the Terminal app to show you the full path of any file located on your machine. Here’s how to reveal the path.
1. Click on Launchpad in your dock, search for and click on Terminal, and it will launch for you.
2. When the Terminal launches, drag and drop your file onto it, and the full path of the file will appear there in the Terminal window.
Using “Go To Folder” to Reveal the File Path
If you would like to get the task done right inside the Finder window, you can use the “Go To Folder” feature that comes preloaded in the Finder app.
1. Open a Finder window by either double-clicking on a folder or double-clicking your main hard drive.
2. Click on the “Go” menu on the top and select the option that says “Go to Folder…”
3. When the Go To Folder feature launches, drag and drop your file onto its path field, and the full path of the file will be filled in there. That is the exact and full path to the file on your Mac.
Using Automator to Reveal the File Path
Automator lets you add many useful customized features that are not already available to your Mac. You can use it to create a service that lets you easily copy the path of a file without any hassle.
1. Click on Launchpad in your dock, search for and click on Automator, and it will launch for you.
2. Automator should ask you where you wish to create your new service. Select the “Applications” folder and click on “New Document” to create a new Automator document.
3. You should now be asked what kind of document you would like to create. Select “Service” from the document type, and click on “Choose.”
4. You will need to modify two options located on the top of the Automator window. Modify them as follows.
Service receives selected “files or folders” in “Finder.”
5. Search for and select “Copy to Clipboard” in the Actions panel and drag it over to the workflow panel.
6. Ensure that your workflow panel looks like the following screenshot. It suggests you are good to go.
7. Now that your service is ready, save it by clicking on the “File” menu followed by “Save…”
8. Enter a meaningful name for the service that you are saving and click on “Save.” In my opinion, a good name for this service would be “Copy File Path” as it is self-explanatory.
9. Your service is ready to be used. Now, right-click on the file you wish to reveal the path of and select “Services” followed by “Copy File Path.” The full path of the file will be copied to your clipboard as text, and you can paste it wherever you want.
I found the Automator method to be the most efficient way for me to reveal the paths of the files on my Mac.
If you often need access to the full paths of the files located on your Mac, you can use the above ways to reveal them. If you do not like one method, choose the other that you think will work the best for you! Let us know below in the comments which way you prefer.