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: MtnBiker on Jul 20, '10 09:31:45AM

Thanks, much prefer a toggle. Found the original here [link:]http://artofgeek.com/2009/09/16/toggle-display-of-hidden-files-in-finder-with-keyboard-shortcut/ where he refers to another Mac OS X Hint that tells us that the same keyboard shortcut (command-shift-'.') works in the Open dialog box.

The script has been updated from the version that paulw used, so read the posting for the reasoning and other details. But here is the updated script (there are three versions, all of which may be useful, but this final one is more generally useful and robust):

<code>
osascript -e 'tell application "Finder" to quit'
SHOWHIDDEN=`defaults read com.apple.finder AppleShowAllFiles`
if [ $SHOWHIDDEN -eq 1 ]; 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 activate'
</code>

These Services do show up under Finder>Services if a file is selected, but not if a folder is selected. A bug?

This takes care of two of three of my comments/questions.

PS Is "[link:]" an HTML tag and how do I use it? And sorry for the formatting, toggling HTML is messing things up.

---
Hermosa Beach, CA USA
Edited on Jul 20, '10 09:45:06AM by MtnBiker



[ Reply to This | # ]
10.6: A Service to show/hide hidden files
Authored by: karog on Jul 20, '10 10:11:16AM

I don't know what the [link:] tag is but if you set the post to HTML Formatted then you can use the <a> tag for links eg

<a href="http://wherever">link text</a>



[ Reply to This | # ]
10.6: A Service to show/hide hidden files
Authored by: mchagers on Jul 21, '10 01:54:29AM

If you set the Service receives menu to "No input", the service is available in the Services menu without selecting any file or folder in the Finder. Also you can make it available in any Application if you like.



[ Reply to This | # ]