A-A+

[Mac] OS X 小技巧 – 禁止修改文件擴展名的警告

2012年04月20日 Mac, 研究資源 評論 488 條

OS X 修改文件擴展名的時候會彈出如下提示,對於新手來說,
可能有用,對於我這樣而言,這個警告對話框不是很討厭。

要禁止它,很簡單在Lauchpad裡面,點擊“工具 - 終端”,然後依次輸入以下命令:

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

想取消就輸入:

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

 

Assuming you have file extensions shown in the OS X Finder, attempting to change a file extension causes a warning dialog with a confirmation box to appear. This is annoying if you know what you’re doing and you have a compelling reason to change extensions, so let’s turn it off using the command line and defaults write.

First, open the Terminal, located within the /Applications/Utilities/ directory, then copy and paste in the following command:

defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

Follow that up by relaunching the Finder with killall:

killall Finder

To reverse the change and get the warning back when you attempt to change file extensions, use the following defaults write command:

defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true

Kill the Finder again for changes to take effect.

標籤: