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: xhints_ on Feb 15, '08 05:24:21PM
A bit late, perhaps, but this page still ranks quite highly on Google.



display dialog "This operation will kill the Finder. Do not use if you are copying, moving, deleting, backing up etc." -- You can delete this line if you find it annoying, but it does make you think twice.

if (do shell script "defaults read com.apple.finder AppleShowAllFiles") as boolean = false then
	do shell script "defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder"
else
	do shell script "defaults write com.apple.finder AppleShowAllFiles -bool false; killall Finder"
end if


[ Reply to This | # ]
An AppleScript to quickly show or hide hidden files
Authored by: johnsawyercjs on Feb 16, '08 01:36:40AM

It's better to quit from the Finder than to kill its process, so Finder windows that were open before the quit, will reopen when Finder is relaunched.



[ Reply to This | # ]