Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wrldwzrd89

macrumors G5
Original poster
I just noticed that, in Mac OS X 10.4 "Tiger" at least, if you give a file a double extension, such as "file.c.txt", Mac OS X forbids you from hiding the extension. This looks to me like a protection mechanism against the so-called double extension spoof, where (for example) a user downloads something called file.txt.vbs, and, only seeing file.txt, opens it, causing the Visual Basic script to execute.
 
I had a file today called something.7z.txt and I hid the .txt extension (by mistake!)
 
I'm guessing it only forbids extension hiding if both extensions are recognized. If you didn't have a handler for .7z files on your system (which I doubt, since the only .7z decompressor I know of is Windows only), that would explain the behavior you saw.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.