Advertisement
applehelpwriter

see / hide invisible files

May 11th, 2013
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --see / hide invisible files save this as an .app and put in your dock for 1-click convenience!
  2. --courtesy of JB/baltwo(ASC) Thx! :)
  3.  
  4.  
  5. try
  6.     do shell script "defaults read com.apple.finder AppleShowAllFiles"
  7. on error
  8.     do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
  9. end try
  10. if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is equal to "0" then
  11.     do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
  12. else
  13.     do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
  14. end if
  15. do shell script "killall Finder"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement