Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Meyerr

macrumors newbie
Original poster
Jul 19, 2008
13
0
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

macrumors 68030
Apr 13, 2011
2,655
808
Yes
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

macrumors 68040
Mar 3, 2008
3,612
76
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.
 

Partron22

macrumors 68030
Apr 13, 2011
2,655
808
Yes
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
 

Meyerr

macrumors newbie
Original poster
Jul 19, 2008
13
0
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!

macrumors 6502
Jun 30, 2008
357
1
日本
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.