Posted By

cappellin on 07/31/13


Tagged

files hidden


Versions (?)

Show/Hide Hidden Files in Mac OS X


 / Published in: AppleScript
 

URL: http://www.cappellin.net/2013/06/visualizzare-i-file-nascosti-in-mac-os-x-108-mountain-lion-e-107-lion.html

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 com.apple.finder AppleShowAllFiles"
  4. set plistCommand to "defaults write com.apple.finder AppleShowAllFiles"
  5.  
  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
  12.  
  13. -- Restart the Finder to see the new value
  14. do shell script "killall Finder"
  15. end run

Report this snippet  

Comments

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 http://www.showhiddenfilesmac.com/ to see hidden files on my Macbook Pro?

You need to login to post a comment.