Putting the full path in your Finder window titles

Path In Title Bar SampleToday Tim asked me how I got the full path to show up in my Finder window titles.

“It’s just a couple of commands you run in the Terminal,” I told him.

“ooooh, those always scare me,” he replied.

I continued, “They should. You can really mess things up if you stray very far from the exact keystrokes required.”

And that was that.

Later tonight I went looking to see if I could find the Terminal commands that I had used to change the default behavior on my Macs. I found them and am posting them here for posterity (and so I can find them easier next time :p)

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
killall Finder

Keep in mind that in the Terminal capitalization is important. So it’s best to cut and paste those two lines (one at a time).

To turn the path thing off, just repeat the two commands except change the all-caps YES to an all-caps NO.

I realized that if Tim gets it, then all of the extended Mac OS X family is going to want it. And it’s really not a good idea for them to be playing with their Terminal. That’d be a whole bag of hurt I just don’t want to deal with.

So I AppleScript-ized the shell commands by firing up the old AppleScript Editor and wrapping the two commands with “Do Shell Script” statements and an “On Run” block.

Here’s what the whole AppleScript looks like. You can copy and paste these lines into your own AppleScript Editor:

on run
do shell script "defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES"
do shell script "killall Finder"
end run

Alternatively, you could just download the handy-dandy .zip file that I’ve included here and run the AppleScript Apps. They’ll do the dirty work for you. Note that when you run them, it is normal for the Finder to stop running for a second. You’ll see your windows and desktop icons go away for a second, but they’ll come right back and all will be well with the world.

The .zip file includes two AppleScript Apps. One for putting the path in the title bar, and one for removing it.

Simple.

Download the scripts here.

BTW, I do know that these Terminal commands work in Mac OS X 10.5 and 10.6, but I’m not 100% certain that the AppleScripts posted here will run in 10.5 since I compiled them on a 10.6 machine. If you have any trouble with the AppleScripts you can resort to the cut and paste method of the code above. If you have any questions, let me know in the comments and I can help you work it out.

Cheryl Luce’s Site is up!

Here’s another site I set up for a friend who wanted to start blogging about her travel groups.

CherylLuceTravel.com

She is using the site to promote the trips that she leads to places all over the world. Last fall she took a group to Africa, this summer she’s taking a group to Alaska. And those are just the A’s.

The site is all based on the wordrpess theme “Sliding Doors” but took a bit of modification to get it to display things properly. It’s still a work in progress, but I think it’s looking pretty nice. She’s updating it almost daily.

SomaticPsychotherapySF.com is Launched!

It’s true, I launched the new website for my friend Kurt in San Francisco today.

Visit the new site

This post is more or less just google bait to get the mighty search engines to take notice. However, if you want to click through, you may also do that.

Enjoy yourself, as always!

It’s based on a new wordpress theme that I really like. I am thinking of changing Cliffdweller to use this theme, too… at least some variant of it.

SomaticPsychotherapySF.com

dev@cliffdweller is launched!

Welcome to dev@cliffdweller.com.

Cliffdweller has been online continuously since 1996, and has had a blog since May of 2004. You can read all of that at blog@cliffdweller. It has served me well for all my personal ranting and raving.

Lately, though, I’ve started reconnecting with my programming roots and have found myself wanting to blog about that path but the readers over on my personal blog get bored by Mac-headed Technical stuff pretty quickly.

So I’ve decided to start this blog and outline my trials and tribulations about teaching myself to program these beasts.

I won’t do a lot of cross plugging of the two blogs, I’ll be maintaining them separately. If you are interested in all the randomness of what goes on, you should probably hang at blog@cliffdweller instead of here. But if you are interested in learning how to develop for the Apple platforms, then you’ve found the place you’re looking for. Stay tuned…

WordPress Themes