Show/Hide Hidden Files in Mac OS X

/ Published in: AppleScript
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. on run
  2. -- Read the current value of AppleShowAllFiles
  3. set plistValue to do shell script "defaults read AppleShowAllFiles"
  4. set plistCommand to "defaults write AppleShowAllFiles"
  6. if plistValue is "false" then
  7. set shellCommand to plistCommand & " true"
  8. else
  9. set shellCommand to plistCommand & " false"
  10. end if
  11. do shell script shellCommand
  13. -- Restart the Finder to see the new value
  14. do shell script "killall Finder"
  15. end run


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.