//隐藏
1 | defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder |
//显示
1 | defaults delete com.apple.finder CreateDesktop;killall Finder |
实用工具-AppleScript编辑器
1 | display dialog "桌面图标设置为可见或隐藏?" buttons {"可见", "隐藏"} with icon 2 with title "Switch to presentation mode" default button 1 |
显示隐藏文件/文件夹
1 | //显示 |
shell脚本
1 | STATUS=`defaults read com.apple.finder AppleShowAllFiles` |