在Mac OS X中显示/隐藏隐藏的文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Mac OS X中显示/隐藏隐藏的文件相关的知识,希望对你有一定的参考价值。
This script show/hide the hidden files and folders in your Mac OS X. It works in OS X 10.8 Mountain Lion, but I think it should work in 10.6 and 10.7, too.
on run -- Read the current value of AppleShowAllFiles set plistValue to do shell script "defaults read com.apple.finder AppleShowAllFiles" set plistCommand to "defaults write com.apple.finder AppleShowAllFiles" if plistValue is "false" then set shellCommand to plistCommand & " true" else set shellCommand to plistCommand & " false" end if do shell script shellCommand -- Restart the Finder to see the new value do shell script "killall Finder" end run
以上是关于在Mac OS X中显示/隐藏隐藏的文件的主要内容,如果未能解决你的问题,请参考以下文章