Ever wanted to grab the file path of an item in Finder so you could paste it somewhere for reference? There are a ton of twisted and backwards ways to do it — or you could try out this simple hint!
This is a tip I just discovered today, so hopefully it will bring just as much joy to you as it did to me. Mac OS X offers a number of ways to find out where a certain file or folder is located — Finder’s Path Bar and the Get Info window, to name a couple — but it doesn’t let you copy and paste the file path. That sure makes it difficult to tell people where to find things. Usually I just end up looking at the Path Bar and typing it all out manually. But alas, there is an easy (and kind of cool) way to copy a file path with the help of Spotlight!
- Navigate to the file or folder of your choice using Finder.
- Using one hand, click and hold that file/folder with your mouse. With the other hand, press Command+Spacebar on the keyboard to open Spotlight in the menu bar.
- Still holding the mouse button down, drag your file/folder to the Spotlight search box. Release the mouse when you see the green plus (+) icon. The file path will appear in the search box.
- Since the file path is already pre-selected, press Command+C to copy it to your Mac’s clipboard.
- Paste the file path in an email message, text document, or any other place you may need it.
There is one thing worth mentioning… if you complete step 2 and find text already sitting in Spotlight’s search box, simply press Delete before moving on to step 3. It technically doesn’t matter if it’s there or not since only your file path will be selected after you drag it. Just something to consider.
While some other approaches to copying a file path involve 3rd party software or special configuration beforehand, this method only requires two hands and some basic finger work. Elegant and straightforward — just the way Mac users like it.
April 13th, 2009, 10:13 PM
Thanks you!