Solution 1:
You can use the defaults application to change the preference for this using the following command:
defaults write com.apple.Safari AutoOpenSafeDownloads 0
You can use the defaults application to change the preference for this using the following command:
defaults write com.apple.Safari AutoOpenSafeDownloads 0