When you open an application you can have all the other applications minimize. To do so you’ll add the single-app key into com.apple.default.plist by using the following command:
defaults write com.apple.dock single-app -bool TRUE
Then you’ll need to restart the Dock:
killall Dock