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


Click here to return to the 'An AppleScript to quickly show or hide hidden files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to quickly show or hide hidden files
Authored by: tijlvuyk on Sep 03, '09 04:04:21AM

This is an other simple way of doing it, this one just toggles the state

try
set state to do shell script "defaults read com.apple.finder AppleShowAllFiles" as string
if state is "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
end try
tell application "Finder" to quit
delay 1
tell application "Finder" to launch



[ Reply to This | # ]