OSX 隐藏桌面图标SHELL脚本
#!/bin/shecho 1.隐藏echo 2.显示echo 3.退出echo Please choose:read -n 1 M#下面一行是换行echo#echo M=$Mif [ “$M” = “1” ]thendefaults write com.apple.finder CreateDesktop -bool FALSE;killall Finderecho 桌面图标已隐藏elif [ “$M” = “2” ]thendefaults delete com.apple.finder CreateDesktop;killall Finderecho 桌面图标已恢复elif [ “$M” = “3” ]thenecho 退出elseecho Errorecho 输入错误!fi