MacScripter / Show Hidden Files


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.