Untick the 'Open Safe Files' preference in Safari with Terminal

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