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


Click here to return to the '10.4: Use Automator to toggle hidden Unix files' visibility' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Automator to toggle hidden Unix files' visibility
Authored by: verlhum on Oct 16, '05 07:23:25AM

I beleive you meant to say:
[code]
set OnOff to do shell script "defaults read com.apple.finder AppleShowAllFiles"
if OnOff= "OFF" or OnOff= "NO" or OnOff= "0" then
set OnOffCommand to "defaults write com.apple.finder AppleShowAllFiles ON"
else
set OnOffCommand to "defaults write com.apple.finder AppleShowAllFiles OFF"
end if
tell application "Finder" to quit
do shell script OnOffCommand
delay 1
tell application "Finder" to launch
[/code]

It threw me for a loop until I realized that inOff was supposed to be OnOff



[ Reply to This | # ]