Automatically launch eMusic .emp files from Safari

I use eMusic’s download manager to handle album downloads from that website, and on one of my computers I haven’t bothered to install Firefox, and instead use Safari.  Safari 3.x on OS X Leopard (10.5.x) restricts automatic opening of files downloaded from the internet, which is a bit annoying if you want an application to do its thing without a lot of irritating clicking about.  Automatic opening is restricted to “safe” files by default, a setting that can be overridden in Safari preferences, although removing this restriction seems to simply prevent any files from opening automatically at all, which is even more useless.  There is a way to work around Safari’s overbearing nannying, though.

Acceptable “safe” files are defined in a .plist file, ~/Library/Preference/com.apple.DownloadAssessment.plist - to get .emp files to launch in eMusic’s download manager, open this file and edit it so it looks something like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>LSRiskCategorySafe</key>
    <dict>
        <key>LSRiskCategoryExtensions</key>
        <array>
            <string>emp</string>
        </array>
    </dict>
</dict>
</plist>

Restart Safari and away you go, assuming .emp files are set to run in the download manager (control-click on the file, select “Get Info”, and make sure eMusic Download Manager is selected in the “Open with” section).  You can probably add any extension you want, and there are various other ways of controlling acceptable “safe” files, such as MIME types.  There is much more detailed information here: http://macenterprise.org/content/view/201/84/

Bonus link: accelerometer fun for Mac laptop users, wheeee!

Leave a Reply