PDA

View Full Version : Problem showing hidden files in Mountain Lion




Meyerr
Dec 5, 2012, 11:08 AM
Before this upgrade, I've never had issues viewing hidden files, but after I enable it once, I'm not able to enable it again until I do a restart.

I use the usual:
"defaults write com.apple.Finder AppleShowAllFiles TRUE" to show hidden files, and
"defaults write com.apple.Finder AppleShowAllFiles FALSE" to hide them again, followed by "killall Finder". Any ideas for why the command works great the first time but isn't showing hidden files again once I hide them?

Thanks



Partron22
Dec 5, 2012, 01:04 PM
I think you want ".finder" rather than ".Finder":
"defaults write com.apple.finder AppleShowAllFiles TRUE"

Both .plists exist, but it's the ".finder" that normally contains the hidden files flag.

You may have added the flag to both plists, which may be slightly confusing your Mac.

r0k
Dec 5, 2012, 01:09 PM
I use Totalfinder which is shareware but offers a user interface toggle for showing hidden files. I wind up leaving it off most of the time because of the [insert cuss word here] .ds_store files. If I have folders sorted by modification date, I keep getting "snapped" to the top of a list every time OSX updates the [insert another cuss word here] .ds_store file.

BTW totalfinder is available as part of a bundle this week on MacUpdate.

Partron22
Dec 5, 2012, 01:32 PM
Here's the AppleScript I wrote for this purpose. It's free:
set buttonpressed to button returned of (display dialog "Show Hidden Files?" buttons {"Yes", "No"})

try
if the buttonpressed is "No" then do shell script "defaults write com.apple.finder AppleShowAllFiles OFF"
if the buttonpressed is "Yes" then do shell script "defaults write com.apple.finder AppleShowAllFiles ON"
do shell script "killall Finder"
end try

GGJstudios
Dec 5, 2012, 01:34 PM
You might try the Secrets preference pane (http://secrets.blacktree.com/), which includes an option for showing/hiding hidden files.

Meyerr
Dec 7, 2012, 02:00 AM
Wow, that was it (com.apple.finder), thank you so much! I have aliases in my .profile so I just have to type "show" or "hide" in terminal, but I like the script idea too. Where do you save the script to be able to run it?

Let's Sekuhara!
Nov 20, 2013, 11:17 PM
Here's the AppleScript I wrote for this purpose. It's free:
set buttonpressed to button returned of (display dialog "Show Hidden Files?" buttons {"Yes", "No"})

try
if the buttonpressed is "No" then do shell script "defaults write com.apple.finder AppleShowAllFiles OFF"
if the buttonpressed is "Yes" then do shell script "defaults write com.apple.finder AppleShowAllFiles ON"
do shell script "killall Finder"
end try


Thanks! This was helpful.
Before I had a script in my Dock for each but this solution is more elegant.