Advertisement
n8henrie

Show Hide Hidden Files.scpt

Aug 24th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. set question to display dialog "Show or hide hidden files?" & return & "Don't that forget this will relaunch Finder." buttons {"Show hidden files", "Hide hidden files", "Cancel"}
  2. set theAnswer to button returned of result
  3.  
  4. if theAnswer is "Show hidden files" then
  5. do shell script "defaults write com.apple.Finder AppleShowAllFiles TRUE && killall Finder"
  6. end if
  7. if theAnswer is "Hide hidden files" then
  8. do shell script "defaults write com.apple.Finder AppleShowAllFiles FALSE && killall Finder"
  9. end if
  10.  
  11. if theAnswer is "Cancel" then
  12. return
  13.  
  14. end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement