美文网首页
Mac显示隐藏文件

Mac显示隐藏文件

作者: Mark_panjie | 来源:发表于2017-12-14 09:56 被阅读0次

Mac要在 Finder 中显示隐藏文件

1、在终端输入:

defaults write com.apple.finder AppleShowAllFiles -bool true; KillAll Finder

这条命令可以显示或隐藏文件文件夹(false)

2、使用Mac自带APP“AppleScript”,新建文件,然后复制下面这段代码,编译后会生成一个GUI的小程序,可以实现文件或文件夹的显示隐藏:

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 AppleShowAllFiles -bool false;

KillAll Finder"

else

do shell script "defaults write com.apple.finder AppleShowAllFiles -bool true;

KillAll Finder"

end if

如图:

相关文章

网友评论

      本文标题:Mac显示隐藏文件

      本文链接:https://www.haomeiwen.com/subject/efphwxtx.html