Mac OS X: copy the current Finder folder or file name to the clipboard
Posted by jpluimers on 2014/05/06
Copying the path from the Finder to the clipboard is a bit cumbersome.
A simple way contains a bit of repetitive steps, and to read Mac OS X: Open a Terminal at Folder from Finder:
- Open a Terminal window in the finder
- Type this command in the Terminal window
pwd | pbcopy
This simple way was suggested my User Kyle Cronin, thanks!
Some notes:
Another way is using Automator. It is a bit more complex to setup, but the actual usage is easier:
- Select the folder or file in the Finder
- Right click
- For a folder: select “Services”
- Select “Copy File Path”
Setting this up is a bit more complex and requires the first 5 steps from Copy file or folder path to the clipboard in Mac OS X Lion | MacYourself:
- Launch Automator from your Mac’s Applications folder. If you’ve never used Automator before, that’s not a problem. This is going to be so simple anyone can do it.
- Double-click the Service icon from Automator’s start menu.
- Toward the top of the right column, you’ll see this line of text: “Service receives selected _____ in _____”. Choose “Files or Folders” from the first menu and “Finder” from the second.
- Next, click on Utilities in the Actions library on the left side. Double-click “Copy to Clipboard” in the middle column. You’ll notice that this action has been added to our workflow on the right.
- Go to File > Save in the menu bar and name your service Copy File Path. Our work with Automator is now done, so you can safely quit it once the service is saved.
I’ve skipped the other steps, as I don’t need a keyboard shortcut for this.
–jeroen
via: Copy file or folder path to the clipboard in Mac OS X Lion | MacYourself.






CRConrad said
P
CRConrad said
I think installing the freeware utility XtraFinder gives you “Copy Path to Clipboard” as a right-click menu option in Finder. With several sub-menu options, like just directory, just filename, or full path.
jpluimers said
Thanks. Will try that.