Copy File & Folder Path from Context Menu on Mac OS

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.

Automater copy file path mac

I put together a easy tutorial so you can do this for yourself. Open up Automator and create a new service.

Copy file path Mac OS

Now search for “Copy To Clipboard” in the left section. Then drag and drop it over to right workflow section.

Save Automator workflow for copy file and folder paths

Now set the ‘Service receives selected’ to “files or folders” and then select in “Finder“. Just as shown in my screenshot.

copy file and folder path in the context menu mac

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“.

Copy folder and file path easy on Mac

You can now copy file paths on Mac!

That’s it!
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 🙂


I’ll be creating more content about starting and running WordPress plugin businesses. You can follow the journey by joining my mail list.

4 thoughts on “Copy File & Folder Path from Context Menu on Mac OS”

  1. Very helpful – thank you. I too had looked long and hard for this, and being new to Mac after 20 years of Windows it’s a great introduction to Automator for me.

    • Glad to help! 🙂 You’ll know more than me soon! Copying the file path is really the only thing I’ve done with Automator so far. I’m sure there’s a ton of useful things to do with it, but I haven’t had the time to dive in further. Let me know if you come up with something cool!


Leave a Comment