Skip to content

Instantly share code, notes, and snippets.

@fbeeper
Last active December 11, 2015 13:08
Show Gist options
  • Select an option

  • Save fbeeper/4605145 to your computer and use it in GitHub Desktop.

Select an option

Save fbeeper/4605145 to your computer and use it in GitHub Desktop.
I need to copy file paths every few minutes, and I want to do it directly from Finder... So I did this to satisfy my needs. You might want to ease your live with it too :P

Copy file path on MacOS Finder to your clipboard

Run the following simple oneliner to download and "install" the service:

curl -L https://dl.dropbox.com/s/xekk5ntkk969ty6/copyfilepath_service.tar.gz | tar zx -C ~/Library/Services/

And find the new option in the contextual menu under Services > copy file path while selecting files or folders in Finder.

💥 you might want to set a shortcut for that action:

  1. Go to System Settings > Keyboard > Services > Files and folders > copy file path
  2. Set your custom shortcut. (I'd bet you may like to have it under ⌥ ⌘ c, it's free!).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment