Skip to Content

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.



Categories

OS Tips and tricks

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...
 

Add a Comment

*0 / 3000 Character Maximum

2 Comments

Filter by:
ThinkMark

You can also change the extension on a file by right clicking, if you have the currently Mighty Mouse, and and choosing "Get Info", then proceed to the name and extension area, and rename it as "something.DMG". simple.

Think Mark

January 22 2008 at 11:28 AM Report abuse rate up rate down Reply
indiekiduk

Yeh when I download .doc word documents Safari appends .dot so I end up with myfile.doc.dot. Pretty stupid.

January 22 2008 at 11:15 AM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.