on run -- Read the current value of AppleShowAllFiles set plistValue to do shell script "defaults read com.apple.finder AppleShowAllFiles" set plistCommand to "defaults write com.apple.finder AppleShowAllFiles" if plistValue is "false" then set shellCommand to plistCommand & " true" else set shellCommand to plistCommand & " false" end if do shell script shellCommand -- Restart the Finder to see the new value do shell script "killall Finder" end run //shell/8302