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: swokm on Sep 06, '06 03:47:47PM
My preferred version below. Don't like toggling, and this way I can't forget to change it back before logging out. Fast. Simple. I like simple.

my BounceFinder("ON")
display dialog ("Currently showing invisible files.") buttons {"Quit"} default button {"Quit"}
my BounceFinder("OFF")

on BounceFinder(FileVis)
	tell application "Finder" to quit
	do shell script "defaults write com.apple.finder AppleShowAllFiles " & FileVis
	delay 0.2
	tell application "Finder" to activate
end BounceFinder
(OS X 10.3.9)

[ Reply to This | # ]