#!/bin/sh # Shell script to toggle the display of hidden files (files starting with # dot ("."). From Vadim Storozhuk who found it on the Web. 1/12/2012 view=$(defaults read com.apple.finder AppleShowAllFiles) if [ "$view" = "1" ] then defaults write com.apple.finder AppleShowAllFiles -bool false else defaults write com.apple.finder AppleShowAllFiles -bool true fi killall Finder