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 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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.