Mac 隐藏/显示桌面图标

Shell:

1
defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder

&

1
defaults delete com.apple.finder CreateDesktop;killall Finder

AppleScript:

1
2
3
4
5
6
7
display dialog "桌面图标设置为可见或隐藏?" buttons {"可见", "隐藏"} with icon 2 with title "Switch to presentation mode" default button 1
set switch to button returned of result
if switch is "隐藏" then
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder"
else
do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder"
end if

Mac 隐藏/显示桌面图标

https://hivan.me/mac-False-Desktop-icon/

作者

Hivan Du

发布于

2021-08-31

更新于

2024-01-16

许可协议

评论