OS X Mavericks removes the option to Show or Hide Hidden files (Why?!) Small AppleScript toggle this option.
Incase you want to review the code beforehand;
set cur_state to do shell script "defaults read com.apple.finder AppleShowAllFiles"
if cur_state = "TRUE" then
do shell script "defaults write com.apple.finder AppleShowAllFiles FALSE"
display alert "Hidden files: OFF" message "Click OK to restart Finder (restarting in 5s)" giving up after 5
else
do shell script "defaults write com.apple.finder AppleShowAllFiles TRUE"
display alert "Hidden files: ON" message "Click OK to restart Finder (restarting in 5s)" giving up after 5
end if
do shell script "killall Finder"
I realised that I was using a toggle from TotalFinder, which I had forgotten to re-install. It was driving me crazy! How do you normally switch?