Copy File Path as Text in OS X

As a new Mac user, I was baffled to discover there was no default way to copy the path of a file or directory to the clipboard.  Luckily, I found a reasonable solution.

  • Open Automator.
  • Select the Service template.
  • Set options at the top to “Service receives selected files or folders in Finder.”
  • Drag over “Copy to Clipboard.”
  • Save the service with a name like “Copy Path.”

That’s it!  Now you can right-click on any selection in the Finder (even multiple selections) and select Services > Copy Path and then paste the text anywhere you like.

You can also use the keyboard system preferences to assign a custom hot key such as Option-Command-C to the service, so you can invoke it directly.

To do this: System Preferences > Keyboard > Shortcuts > Services > Files and Folders > Copy Path > Add Shortcut. I usually use ⌥⌘C (but only because ⇧⌘C is default for Go > Computer).

You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com
WordPress Appliance - Powered by TurnKey Linux