defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false; killall Finder
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true; killall Finder