This surely sounds weird to PC users ;-), but my actual question is "How can I copy the path to a folder or a file ?" The Info Dialog doesn't allow me to copy the information that stands there ...

Is there an easy way to do that ?
|
There are two ways I do this (and the info window is neither of them):
...select an item in the Finder and run this...
...or create a droplet with this code...
Add salt to taste. |
|||||
|
|
As already described by ayaz, the Get Info window (cmd+i) has the full path and will allow you to copy it. If you tripple click in the highlighted area (by the red rectangle) the selection will automatically expand to the whole path. cmd + c will suffice to copy it to the clipboard.
If you need the path to interact with the Terminal, you can always check one of the “zillion” answers in this Stack Overflow Question. UPDATE: This method seems to be only valid for OS X 10.6.x, previous OS X versions used the non-POSIX path style that looked like path:to:file, whereas the POSIX would be path/to/file. If you are in something older than OS X 10.6, you will have to try one of the other methods described in the other answers (or upgrade to 10.6 ;) |
|||||||||
|
|
I will move my comment over as an answer. You should be able to copy the path to a folder/file by highlighting the value next to "Where:" in the info dialog and pressing An easier alternative that requires less effort is right-clicking on that value, and clicking "Copy" in the drop-down that appears. |
|||
|
|
|
Sometimes the solution is so simple. Just mark the file in the finder and then press Command-C. The path including the file name is copied to the clipboard and you can paste it in any application. |
|||||||||||
|
|
This is how to create a Service to copy to the clipboard the selected paths in Finder:
Now you will be able to run this service if you right click an element and choose Services > Copy POSIX Paths. It will copy the file(s) selected in Finder to your clipboard. I tested this on Lion.
I got this tip from Kris Johnson's Blog. |
|||
|
|
|
Simply drag the file into text editor, and it will give you the full path for that file. |
|||
|
|
|
|||
|
|
CMD+cto copy it? – ayaz Sep 29 '10 at 11:39Copyin it – Victor Jalencas Sep 30 '10 at 13:59