Quickly Copy File Paths on Mac
I have such a need: I want to quickly copy the path of selected files or folders in Finder.
Unsatisfactory Methods
- Of course, third-party apps like
Easy New File
can do this, but installing a bloated app for just one small need is really unwilling - Alfred can also solve this - select a file or folder, trigger with a hotkey, and get the path. But Alfred cannot extend right-click menus, and I need to remember a shortcut key.
So is there a way to customize the right-click menu to provide a copy path operation? YES - Automator
Automator Introduction
Automator is software developed by Apple for their Mac OS X system. You can combine a series of actions into a workflow through simple clicking and dragging operations, helping you automatically (and repeatably) complete complex tasks. Automator can also work across many different types of programs, including: Finder, Safari web browser, iCal, Address Book, or other programs. It can also work with some third-party programs, such as Microsoft Office, Adobe Photoshop, or Pixelmator.
After a preliminary understanding, we can know its capability limits and scope.
Alfred’s Limitations
Automator can save many repetitive operations, and Alfred is similar, but Alfred has some inherent limitations.
Scheduled tasks are not supported
, which is also related to this product’s design philosophy. Alfred’s triggers are nothing more than keywords or shortcuts, which are all actively triggeredDoes not support custom menus
The above 2 points, Automator can do, I have to say it’s really good.
Creating Workflows
Knowing what it can do, let’s get started. I won’t go into detail here because the official website explains it clearly. Click here
Current Effect
Select a folder or file, right-click - in services you can see the custom menu item - Copy Path, perfect
Here’s what I made, click here, download and install to use
Final Thoughts
It seems like a small step, but for similar needs, you now know the implementation method, so it’s worth it.