Quick Tip: Window Title Bar Icon

17 Comments

Yeah, sorry, I don’t really know how to title this little trick. Let me see if I can set this up so it’s clear what you’ll be looking at, before you actually look. (Or you can skip me stumbling over myself and just watch it anyway…)

When you’ve got a window open – be it Firefox, TextMate, etc, etc – there’s a title to that window at the top, and if it’s a file, there’s an icon positioned to the left of it. A nice trick in OS X is that you can drag that icon to the Finder to create an alias, or by holding down the OPTION key, you can make a copy of that file someplace as well.

Also, if you hold the COMMAND key (Apple key if you’re new ’round here) when clicking on that icon (or any part of the title in that bar) it’ll show you the path in which that file resides. So for instance, lately I’ve been going through some Ruby tutorials. The folder structures are many and a few levels deep. As I’m a relative n00b to this, the folder structures lose me quickly, so being able to CMD click on the title/icon at the top of the window and quickly see where I’m at is a huge help.

Ok so you’ve basically got it now. Below is a quickie screencast I recorded so you visual folks can get the idea. There’s no sound – it’s not broken, I just didn’t record any.

CMD Windowbar Trick (no sound!) – 5mb

17 Comments

hyearn

钻石–生命宝石
源自古老的伊始,出自发丝的结晶。保留天性的挚真,不需俗世的附会

John Sawyer

As the article states, the item being talked about here is the window’s “title bar”, not the “menu bar”–in OS X, windows don’t have a menu bar–you find that only in Windows and some other OSs. The menu bar in OS X is the thing at the top of the screen.

Jono

I knew about it in Finder, & stuff like if you dragged the icon off a search it created a Saved Search Folder etc. but didn’t know you could do that with Safari :)

zahadum

not sure, but i recall the term ‘badge’ being used for the ‘proxy icon’.

droughtquake

You can also drag the Proxy Icon to move the document/folder to the trash, for example.

Niclet

Wow! thanks for these answers.

I found also that if I open a blank TextEdit window in text format (.txt) and I drag any file on it, it will show the long path of this file.

In fact, I think any text format (.txt) container will act the same : if I drag a file from the Finder to the (activated) Google search area on top-right of a Safari window, the path appears. Fascinating!

Schaller

To follow up on Niclet’s question: Select the file in the Finder, Command-C copy it, then Command-V paste in the Terminal. It’s all the same thing.

Niclet

Thanks Nick,

BTW, speaking of paths, is there any way to easily get the (unix) path of a file?
(like ~/Documents/MyText.txt or ~/Library/AFolder/AnotherFolder/ThisFolder)
By clicking on it with a certain key combination, or by a kind of rapid action, and get it in the clipboard for example?

I know I’m a bit out of topic but it’s still related.

Schaller

You can drag those menu bar document/folder icons to a Terminal window, too, which will drop the document’s full path into your command line. If you mix your Finder with your Terminal a lot, this feature is pretty handy.

(It also works for any Finder document/folder icon, for that matter.)

Nick Santilli

Niclet
from a folder, no. This trick is just about the window’s menu bar.
However, you can check out a contextual menu plugin (think, right click) called FolderGlance. it functions to let you right click a folder and show you the nested files/folders within it…

Thanks for the Safari tip guys – being a Camino user, I missed that little tidbit.

Niclet

Is there a way to do the same thing when you just clic on a folder?

Frank

Didn’t know about the safari thing. This has been one of those cool, untrumpeted little features of Mac OS going all the way back to what, OS 7? 8?

Makes you marvel at just how clever Apple is.

Galley

Similarly, command-clicking on the title in Safari will show you paths all the way to the root directory of the website you are currently viewing.

Comments are closed.