This is obscure, but I ran across this recently and thought it might help someone else out. I frequently need to copy the path to a file on my Mac or on a server, so that I can include that path in documentation or in a support email with a customer. Here’s how to do it:
1. Select the file you want in the Finder
2. Choose File > Get Info (command-i)
3. Select the full path next to “Where” in the Get Info dialog box
4. Choose Edit > Copy (command-c)
The file path is now on the clipboard, and can be pasted into a text document or an email. The path will look like this after pasting:
/Users/keithgilbert/Dropbox/Stock/Vector/Open Clipart Library/openclipart-0.18-svgonly/clipart/education
UPDATE:
I just discovered by reading Dan Rodney’s excellent list of Mac Keyboard Shortcuts that if you select a file in the finder and press command-option-c the path name is copied. This method also puts the filename on the end of the path, so in my example above, the result is:
/Users/keithgilbert/Dropbox/Stock/Vector/Open Clipart Library/openclipart-0.18-svgonly/clipart/education/logaritmic_diagram_01.svg
YET ANOTHER UPDATE:
Jamie McKee at MacKey Composition alerted me to this: You can right-click on a file or folder in the Finder, and then hold down the option key and choose “Copy [filename] as Pathname”.
Wow. I had no idea there were so many ways to do this. Good to know!
8 comments:
Very helpful, Keith!
This is great! Shared it with the team. Thank you!
Update - on MacOS High Sierra: you have to select the file, then hold down option and click the 'Action' (gear) button on the toolbar, to find the 'copy ... as path' option.
OSX 10.11+ users can use:
Option (⌥) – Command (⌘) – C
Still hepful! Thank you, sir.
Thank you very much for your post, for me the option to hold Option button worked perfectly.
Great Job!
This is awesome! But one problem - we're linking to files that are on our server and when we send an email to a teammate and they click the link, or even copy/paste it in Go to File, it doesn't work. Any suggestions?
Command+Op[tion+c works. Thank you
Post a Comment