1

For some weird reason I don't understand my home directory got associated with a program (TextWrangler):

enter image description here

Now every time I try to open my home directory in the Finder, TextWrangler gets started. How can I get the normal behaviour back?

I use Mavericks (10.9).

2
  • If you compress that application and then delete all copies of it, does the mapping revert to Finder? If so, you can then re-install the app and observe if it was a one time change or that Application is actually telling the OS to send all folders to it.
    – bmike
    Commented Nov 25, 2013 at 20:20
  • When I do this, it will just associate the home directory with the next program in the list.
    – Eekhoorn
    Commented Nov 26, 2013 at 8:01

1 Answer 1

1

Try this in Terminal:

SetFile -a B "$HOME"

Original credit to this goes to Tantek Çelik. I just happened to remember finding his post when I was trying to fix a different problem getting VLC to play .dvdmedia files.

Note that if you do not have /usr/bin/SetFile then you may need to install the command line tools for Xcode. If you are not automatically prompted to install that, you should be able to install them by entering this line in Terminal:

xcode-select --install

which will prompt you to install them using a dialog box like this:

enter image description here

Just click 'Install' you don't need "Get Xcode" unless you want the whole thing.

If that doesn't work, the next thing I would try is:

xattr -d com.apple.FinderInfo "$HOME"

which will remove extended attributes from "$HOME" but I am not sure if there are attributes that it would remove which you would be better off keeping, so I hesitate to suggest it. Use as your own risk/YMMV, etc.

0

You must log in to answer this question.

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