Editing a file using text wrangler. Want the path so can pass it to a program in the terminal. Is there an easy way to do this? Don't seem to be able to drag it nor right click and get info.

I'm not in Finder, but in the file chooser dialog that you see when executing File/Save as.

If there is no way to drag would be nice to be able to right click and get info OR/AND send it to a list of program, one of which could simply copy its full path to the system clipboard.

  • 1
    Did you try to drag the icon at the top of the TextWrangler window? – nohillside May 29 '13 at 7:58
  • that worked and also saw i can right click there and copy the file name/ path / URL. great. if you think this is a non trivial question maybe you can make your comment an answer and i will accept it. though would have been great if that worked from the system File Chooser too. – tgkprog May 29 '13 at 8:01
  • fyi I'm on a desktop no trackpad. do not have track pad options as described here discussions.apple.com/thread/4139129?start=0&tstart=0 @patrix – tgkprog May 29 '13 at 8:05

In general you can just drag the icon from the Textmate window title to get hold of the file. If you drag it into a Terminal window, the path will be inserted automatically.

  • Textmate means general text editor or is that some other specific app – tgkprog May 29 '13 at 9:21
  • It works in most applications actually – nohillside May 29 '13 at 9:56

There is a plug in that enables to copy a file's path directly from the finder with a right click. You can find it here: Copy path

  • great i hope it works in the File save as window too! – tgkprog May 29 '13 at 9:20
  • the page does not render. weird as if i view src can see the html, but looks like there are a lot of add on scripts that keep loading ... do you have a direct link the add on and one more to instructions? thank you – tgkprog May 29 '13 at 9:35
  • Mmmh, I am sorry about that. I had it installed on my computer and did not check the link to download the script... It is not working anymore. Doing a quick search I found this alternative: abracode.com/free/cmworkshop/file_utils.html I don't know this add-on, and cannot try it out right now. But according to the description it allows you to copy a file path in the clipboard with a right click. – Giomsen May 29 '13 at 10:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .