Skip to Content

Free TUAW iPhone app -- try it now!
AOL Tech

Filed under: OS, Tips and tricks

Quick tip: fixing Safari's fumbles

Have you ever downloaded a file using Safari and ended up with an extension like .dmg.bz2, only to find that no amount of double clicking will actually get you to a mountable disk image? Here's the down and dirty:

Safari has a habit of guessing at what you're downloading and appending an extension for you, at least when the server doesn't explicitly declare it. In this case, it's looking at the compression method being used inside of the disk image, finding bzip2 and appending that extension. But the disk image isn't actually archived, so this throws everything off. When the OS sees the bz2 extension (or any extension after the .dmg), it assumes it's a compressed archive and unzips it. The resulting file is broken.

The answer? If you run into this problem, just click the file once to rename it and remove the trailing extension after .dmg. The disk image should mount on a double click. An aging post at Unsanity also divulges the server-side solution for preventing the problem entirely.

Reader Comments (Page 1 of 1)

Tip of the Day

Reply in the Mail.app with a specific quote.
Select the text you want quoted and then hit the reply button.
Only your selected text will copied to the reply email.


Follow us on Twitter!
 TUAW [Cafepress]

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

More Apple Analysis

AOL Radio TUAW on Stitcher