Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I know that I can hide all extensions but how do I hide just one, say webloc? I don't want to hide each the extension of each file individually.

share|improve this question

1 Answer 1

The only thing I could find, suggested by Benjamin Schollnick, here., is this:

find -x /path/to/folder -name *.webloc -exec chflags hidden {} +

It will hide the extension for existing files, therefore, you will need to run it again for newly created files.

Althought in the original question its said for Leopard, I guess it will work for Lion too.

share|improve this answer
Thanks. I still find it strange that there isn't a system-wide switch for that. – lhf May 17 '12 at 14:47
Apparently it is. Just found this, too.… – Thecafremo May 17 '12 at 15:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.