Posted By

TechNick on 06/29/10


Tagged

applescript


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

weidel


MacScripter / Show Hidden Files


 / Published in: AppleScript
 

URL: http://macscripter.net/viewtopic.php?id=33377

  1. Open this Scriplet in your Editor:
  2.  
  3. display alert "Would you like to show or hide the hidden files?" buttons {"Hide", "Show"} default button "Hide" as warning
  4. if button returned of result is "Hide" then
  5.  
  6. do shell script "defaults write com.apple.finder AppleShowAllFiles -bool false ; killall Finder"
  7. else
  8.  
  9. do shell script "defaults write com.apple.finder AppleShowAllFiles -bool true ; killall Finder"
  10. end if

Report this snippet  

You need to login to post a comment.