Toggling Hidden File Visibility with Applescript
set Status to do shell script "defaults read com.apple.finder AppleShowAllFiles" if Status = "OFF" then do shell script "defaults write com.apple.finder AppleShowAllFiles ON" else do shell script "defaults write com.apple.finder AppleShowAllFiles OFF" end if do shell script "killall Finder"
Just download it, open it in the Script Editor (I can double click it), and do Save As. Then, select Application as the type, and do Run Only and save it. Then, hide it away and make an alias to it, and drop that on the desktop. Here’s what mine looks like:
And after I double click that Alias:
I like this – it makes basing things on system configuration really easy.