Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 5, 2012, 11:08 AM   #1
Meyerr
macrumors newbie
 
Join Date: Jul 2008
Problem showing hidden files in Mountain Lion

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
Meyerr is offline   0 Reply With Quote
Old Dec 5, 2012, 01:04 PM   #2
Partron22
macrumors 6502a
 
Join Date: Apr 2011
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.
Partron22 is offline   1 Reply With Quote
Old Dec 5, 2012, 01:09 PM   #3
r0k
macrumors 68040
 
r0k's Avatar
 
Join Date: Mar 2008
Location: Detroit
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.
__________________
-r0k
Macbook Pro (late 2011) iPad mini iPhone5
Got a scan to ftp scanner? Enable ftpd in Mavericks!
r0k is offline   0 Reply With Quote
Old Dec 5, 2012, 01:32 PM   #4
Partron22
macrumors 6502a
 
Join Date: Apr 2011
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
Partron22 is offline   1 Reply With Quote
Old Dec 5, 2012, 01:34 PM   #5
GGJstudios
macrumors Westmere
 
Join Date: May 2008
You might try the Secrets preference pane, which includes an option for showing/hiding hidden files.
GGJstudios is offline   0 Reply With Quote
Old Dec 7, 2012, 02:00 AM   #6
Meyerr
Thread Starter
macrumors newbie
 
Join Date: Jul 2008
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?
Meyerr is offline   0 Reply With Quote
Old Nov 20, 2013, 11:17 PM   #7
Let's Sekuhara!
macrumors 6502
 
Join Date: Jun 2008
Location: 日本
Quote:
Originally Posted by Partron22 View Post
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
Thanks! This was helpful.
Before I had a script in my Dock for each but this solution is more elegant.
__________________
27" i7 iMac | 11" MacBook Air | Black MacBook | iPhone 5
Favorite Mac apps: Blender | Ableton Live | Reason
Let's Sekuhara! is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Secret 'Hidden' Hi-Res Wallpapers in Mountain Lion OS!! M5RahuL OS X 10.8 Mountain Lion 7 Jan 26, 2013 02:20 PM
showing hidden files Drich290195 Mac Basics and Help 7 Aug 21, 2012 03:35 PM
Problem clean installing Mountain Lion over Mountain Lion! datsmabowl OS X 10.8 Mountain Lion 6 Aug 15, 2012 10:13 PM
Mountain Lion - Hidden Folders metaljay OS X 10.8 Mountain Lion 17 Aug 6, 2012 06:38 PM
Hidden Mac models in Mountain Lion Preview samac92 OS X 10.8 Mountain Lion 3 Jun 15, 2012 09:52 AM

Forum Jump

All times are GMT -5. The time now is 03:55 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC