/ Published in: AppleScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Open this Scriplet in your Editor: display alert "Would you like to show or hide the hidden files?" buttons {"Hide", "Show"} default button "Hide" as warning if button returned of result is "Hide" then do shell script "defaults write com.apple.finder AppleShowAllFiles -bool false ; killall Finder" else do shell script "defaults write com.apple.finder AppleShowAllFiles -bool true ; killall Finder" end if
URL: http://macscripter.net/viewtopic.php?id=33377