Problem showing hidden files in Mountain Lion

Discussion in 'OS X Mountain Lion (10.8)' started by Meyerr, Dec 5, 2012.

  1. macrumors newbie

    Joined:
    Jul 19, 2008
    #1
    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
     
  2. macrumors 65816

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #2
    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.
     
  3. r0k
    macrumors 68040

    r0k

    Joined:
    Mar 3, 2008
    Location:
    Detroit
    #3
    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.
     
  4. macrumors 65816

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #4
    Here's the AppleScript I wrote for this purpose. It's free:
    Code:
    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
    
     
  5. macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #5
  6. thread starter macrumors newbie

    Joined:
    Jul 19, 2008
    #6
    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?
     
  7. macrumors 6502

    Let's Sekuhara!

    Joined:
    Jun 30, 2008
    Location:
    日本
    #7
    Thanks! This was helpful.
    Before I had a script in my Dock for each but this solution is more elegant.
     

Share This Page