I’ve been on the hunt for the best workflow for some time. I’m always looking to save time and improve my Shortcut game! Copying a specific file or folder path to the clipboard on Mac OS has been a frustration for me. So today I figured out how to speed the process with a custom service which adds a “Copy Path” option the right click context menu. The copy path option is displayed on any file or folder, it copies the full directory path into the clipboard for easy pasting.
I put together a easy tutorial so you can do this for yourself. Open up Automator and create a new service.
Now search for “Copy To Clipboard” in the left section. Then drag and drop it over to right workflow section.
Now set the ‘Service receives selected’ to “files or folders” and then select in “Finder“. Just as shown in my screenshot.
Now just save it! Remember this is where you choose the name of the service. In other words, this is what will display in the right click context menu. I simply named mine “Copy Path“.
You can now copy file paths on Mac!
You should now be able to see your “Copy Path” option for all folders and files in Finder! The directory path will be ready for pasting into any application. It’s a much needed trick if you are doing web development on Mac OS.
If you should need the directory path quickly, then launch Terminal and drag any folder or file into the Terminal window. The full file path will be displayed, just remember to copy it!
Hope this short tutorial has helped you 🙂