Finder / Toggle visibility of hidden files

Via Shell this way:

#!/bin/bash
# Toggle Finder showing hidden files
#
# From: www.chipwreck.de

value=`defaults read com.apple.finder AppleShowAllFiles`
if [ $value == "TRUE" ]
then
  defaults write com.apple.finder AppleShowAllFiles FALSE
else
  defaults write com.apple.finder AppleShowAllFiles TRUE
fi
	
killall Finder
exit 0

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.