Posted By

cappellin on 07/31/13


files hidden

Versions (?)

Show/Hide Hidden Files in Mac OS X

 / Published in: AppleScript


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.

  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
Posted By: carolgwahl on February 28, 2014

That is a great information you have shared. Can I use an application from this site to see hidden files on my Macbook Pro?

You need to login to post a comment.