Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: A Service to show/hide hidden files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: A Service to show/hide hidden files
Authored by: chinstrap on Jul 20, '10 01:52:22PM
Alternatively, just wrap the whole thing in a single service called 'Toggle Hidden Files' with a single shell script:

SHOW=`defaults read com.apple.finder AppleShowAllFiles`
if [ "${SHOW}x" = "1x" ]; then
    defaults write com.apple.finder AppleShowAllFiles -bool FALSE
else
    defaults write com.apple.finder AppleShowAllFiles -bool TRUE
fi
osascript -e 'tell application "Finder" to quit'
osascript -e 'tell application "Finder" to activate'


[ Reply to This | # ]