How to automatically open .torrent and other files in Safari.
Posted on March 14, 2008
To achieve this, you have to modify what Safari considers as a “safe” file. First of all, you have to check the option Open “safe” files after downloading in Safari’s Preferences. Then follow this guide. (Or download the plist below.)
Create the file com.apple.DownloadAssessment.plist (if it doesn’t already exists) in your user folder under Library/Preferences.
Then copy & paste the xml code stated below in the file. In this example for a .torrent file.
Save it … and voilà!
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com-PropertyList-1.0.dtd”>
<plist version=”1.0″>
<dict>
<key>LSRiskCategorySafe</key>
<dict>
<key>LSRiskCategoryExtensions</key>
<array>
<string>torrent</string>
</array>
</dict>
</dict>
</plist>