Take the 2-minute tour ×
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

2 Answers 2

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
1  
Apparently it is. Just found this, too. apple.stackexchange.com/questions/18589/… –  Thecafremo May 17 '12 at 15:33

At first find -x /path/to/folder -name *.webloc -exec chflags hidden {} + hid my desktop directory

Then figured out that doing a no hidden switch would show it again at first find -x /path/to/folder -name *.webloc -exec chflags nohidden {} +

So then i tried going to the desktop folder in terminal and then firing off find -x *.webloc -exec chflags hidden {} + that just hid all the .webloc files, no good

Trying it again was telling me all of a sudden that the -x switch didn't exist find: illegal option -- n usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

so i don't know how to make this work on those annoying .webloc extensions, i see a lot of people are complaining about them when searching about it.

share|improve this answer

Your Answer

 
discard

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.