Home > howto, safari, xml > Adding filetypes to Safari’s “Safe List”

Adding filetypes to Safari’s “Safe List”

August 12th, 2009 grady

Ever wanted to have Safari open a filetype after downloading?

Well I was constantly downloading Word files at work and then having to navigate to my Downloads folder to open the file. I wanted Safari to behave *gasp* like IE in this regard. This seemed like an unnecessary step and and a disruption of my personal workflow, security concerns aside.

So if you are ok with the Security ramifications and want to do this, read on.

Navigate to your ~/Library/Preferences directory. Open, or create the following file, com.apple.DownloadAssessment.plist.

Add the following, i.e. to allow Safari to open a .doc file after it downloads:

<?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>doc</string>
</array>
</dict>
</dict>
</plist>

Categories: howto, safari, xml Tags:
Comments are closed.