Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Quickly paste object paths in the Terminal UNIX
Tiger only hintIf you copy a file or folder in the Finder, and then paste it into the Terminal, the full path to that item is pasted. So you can now get items' paths without resorting to a drag and drop. Just copy in the Finder, switch to the Terminal, and paste.

This hint was emailed to me by macosxhints' reader "Cap'n Hector."
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[3,942 views]  

10.4: Quickly paste object paths in the Terminal | 5 comments | Create New Account
Click here to return to the '10.4: Quickly paste object paths in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Quickly paste object paths in the Terminal
Authored by: club60.org on May 11, '05 12:52:45PM

In my case it copies the filename only.



[ Reply to This | # ]
10.4: Quickly paste object paths in the Terminal
Authored by: club60.org on May 11, '05 12:54:42PM

Oh, I see. I am using iTerm. ;-)

So it's not the feature of Finder but Termianl.app



[ Reply to This | # ]
10.4: Quickly paste object paths in the Terminal
Authored by: alblue on May 11, '05 01:21:59PM

This isn't 10.4 specific. In fact, you've been able to drag-and-drop an icon straight onto an open Terminal window to get the full path in there for a long time now.

What changed in 10.4 is that the manual copy-and-paste now puts the full path in; whereas in 10.3 it only put the name in. However, dragging and dropping the icon did put the full path in on 10.3 as well as 10.2 and probably 10.1 as well.



[ Reply to This | # ]
10.4: Quickly paste object paths in the Terminal
Authored by: robg on May 11, '05 02:10:54PM

Sorry if it wasn't clear; that's what I was trying to say: pasting now gets a path, whereas before you had to drag-n-drop to get the path...

-rob.



[ Reply to This | # ]
10.4: Quickly paste object paths in the Terminal
Authored by: hnhansen on Jun 03, '05 02:52:38PM

If I copy a "Web Internet Location" file aka a ".webloc" file, a paste in Terminal only produces the name of the file, as in "Apple - Start.webloc".

If I drag a .webloc file into a Terminal window I get the URL of the file, as in "http://www.apple.com/startpage/".

Any other file or folder that is copied and pasted works as expected.



[ Reply to This | # ]