How to show hidden files in Finder (OS X 10.9)?

Hi Apple-lovers and Apple-users!


I haven't found a solution, how to show hidden files in Finder since the update to OS X 10.9.. I know how to show them in the Terminal but I want to see them in the Finder too.
I know the Terminal-commands for showing hidden files in OS X 10.8. ("defaults write com.apple.finder AppleShowAllFiles TRUE&&killall Finder") but this doesn't work anymore.


So if somebody has figured it out yet - please help me! 🙂


Yours,
oh_its_a_me

MacBook Pro, OS X Mavericks (10.9)

Posted on Oct 25, 2013 12:49 PM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Jan 29, 2014 2:07 AM

This worked for me and my colleagues:


I was forced to spend some of my precious time looking into this use today and I have now worked it out. The command that everyone is using is correct, but there seem to be some new plist caching being used in Mavericks that is being messed by by the "killall Finder" command. The key is to reboot rather than killall.


To show all the file:

Type the following into a terminal window:


defaults write com.apple.finder AppleShowAllFiles 1


Then REBOOT. Do not use the killall Finder command as suggested in other posts.



I got the clue from this post:

http://hints.macworld.com/article.php?story=20130908042828630


What we can see happening is that then we run the defaults command, the finder plist is updated correctly but when the killall command is issued and we recheck the plist, the AppleShowAllFiles line is gone again. I figured that the kill all command must trigger some kind of security in the OS. It probably thinks that Finder has crashed and it refreshes it's plist file from a backup. I guessed that a reboot of the system would gracefully write any caches to where they should be. This seems to be the case.

63 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Jan 29, 2014 2:07 AM in response to oh_its_a_me

This worked for me and my colleagues:


I was forced to spend some of my precious time looking into this use today and I have now worked it out. The command that everyone is using is correct, but there seem to be some new plist caching being used in Mavericks that is being messed by by the "killall Finder" command. The key is to reboot rather than killall.


To show all the file:

Type the following into a terminal window:


defaults write com.apple.finder AppleShowAllFiles 1


Then REBOOT. Do not use the killall Finder command as suggested in other posts.



I got the clue from this post:

http://hints.macworld.com/article.php?story=20130908042828630


What we can see happening is that then we run the defaults command, the finder plist is updated correctly but when the killall command is issued and we recheck the plist, the AppleShowAllFiles line is gone again. I figured that the kill all command must trigger some kind of security in the OS. It probably thinks that Finder has crashed and it refreshes it's plist file from a backup. I guessed that a reboot of the system would gracefully write any caches to where they should be. This seems to be the case.

Reply

Dec 23, 2013 12:22 PM in response to MJAtlas

You are completely wrong about it being part of ANY OSX. Just admit to it and move on. We all make mistakes.


http://www.onyxmac.com



Onyx Mac Download

Developer : Titanium’s Software





OnyX is an all-in-one system maintenance tool and optimizer. It is a very simple and light application that comes with a variety of maintenance tools that can be run to make sure that you are enjoying your system at its fullest.

The first scans that OnyX will make automatically when you run the application for the first time are a S.M.A.R.T status check of your hard drives and the analysis of your startup discs. If the application detects any problems, it will prompt you to carry out a reparation task.

Not everything that OnyX can do deals with hard drives, though. In the main window, there are five categories. The first one is hard drive analysis and restoration, but the following ones allow you to repair the permissions of your system (a common problem with Macs), clear your browser settings, cache, passwords, etc., delete application, user and system caches, and more.

An array of more advanced features is also available. Those allow you to hide or show volumes, repair discs, run custom scripts, among others. OnyX comes with extensive help and it even includes a glossary with the information about many tasks.

Although Macs are known for their stability and lack of errors, it can never hurt to have an application like this.

Onyx Advantages

  • It has several different types of checks and repair tasks available.
  • It has lots of help.

Disadvantages

Not a fully automated mac maintenance


Merry Christmas


Pete

Reply

Nov 10, 2013 4:25 AM in response to JaFaint

This explains a lot. I wrote an AppleScript back while I was still using Lion, to reveal and hide hidden files and folders. Now I'm using Mavericks, and when I tried to use the script today, it didnt do anything. Looks like it's time to update the script.


Thanks for the info!

Reply

Dec 1, 2013 7:11 AM in response to Tom Jones 1999

One more way (yours is better as a real App though)


set answer to the button returned of (display dialog ("Finder Hidden Files:") buttons {"Show", "Hide", "Cancel"} with icon caution default button 3 with title "Finder Hidden Files")

if answer is "Show" then

tell application "Finder" to quit

do shell script "defaults write com.apple.finder AppleShowAllFiles 1"


delay 2

tell application "Finder" to run

else

tell application "Finder" to quit

do shell script "defaults write com.apple.finder AppleShowAllFiles 0"


delay 2

tell application "Finder" to run

end if

Reply

Dec 7, 2013 9:16 AM in response to Tony T1

Tony I think you need to do nothing if Cancel is pressed, currently it will check 'if answer is "Show"' and return false, so set to hidden. If you have them shown then click Cancel it will hide the files, where as you want it to leave the setting as-is.


I may be wrong having not programmed in that language really but the logic seems incomplete

Reply

Dec 7, 2013 9:22 AM in response to Tony T1

This particular script will allow you to just press Enter to obtain the opposite result of the current Hidden or not variable. eg. if the hidden files are invisible, then set the default button to "show hidden files" and vice-versa.


try

set yorn to (do shell script "defaults read com.apple.Finder AppleShowAllFiles")

on error

set yournans to 2

end try

if yorn is "FALSE" then

set yornans to 2

end if

if yorn is "TRUE" then

set yornans to 3

end if

display alert "Revealer" message "Would you like to show all hidden files or hide them?" buttons {"Cancel", "Show Hidden Files", "Hide Hidden Files"} default button yornans

set ShowOrHideButton to button returned of the result

if ShowOrHideButton is "Show Hidden Files" then

do shell script "defaults write com.apple.finder AppleShowAllFiles TRUE"

do shell script "killall Finder"

end if

if ShowOrHideButton is "Hide Hidden Files" then

do shell script "defaults write com.apple.finder AppleShowAllFiles FALSE"

do shell script "killall Finder"

end if

if ShowOrHideButton is "Show Hidden Files" then

set endAlert to "All hidden files are now visible."

end if

if ShowOrHideButton is "Hide Hidden Files" then

set endAlert to "All hidden files are now invisible."

end if

if ShowOrHideButton is "Cancel" then

set endAlert to "Nothing was changed."

end if


display alert "Revealer" message "Completed Successfully! " & endAlert & ""

Reply

Dec 7, 2013 3:57 PM in response to oh_its_a_me

I didn't write this script, and credit is due to Baltwo. Open the script content in the AppleScript Editor. Save it as text (dotx.applescript) where you want to save the source. Then, save as an Application and drag it to your Dock. Click once to reveal hidden files, click again to hide them.



-- AppleScript to toggle hidden "." files
-- Submitted by Baltwo on Apple Support Community

try
          do shell script "defaults read com.apple.finder AppleShowAllFiles"
on error
          do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
end try

if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is equal to "0" then
          do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
else
          do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
end if

do shell script "killall Finder"
Reply

Dec 22, 2013 5:11 AM in response to Michael Kühnel

Michael Kühnel wrote:


I really need to show hidden files with my default user. I already repaired permissions with disk utility.

Any ideas how to fix this?


Try re-setting Finder Preferences by dragging ~/Library/Preferences/com.apple.finder.plist to the Trash

then in Terminal defaults write com.apple.finder AppleShowAllFiles 1


Note: this will reset any Finder Prefereces you set in Finder->Preferences

Reply

Dec 23, 2013 11:49 AM in response to MJAtlas

MJAtlas wrote:


Just use OnyX -- t's built in to every mac os.



No, you have to download it and install it seperately to the OSX. What makes you think it is 'built in'?


You can also use TinkerTool or Cocktail to see hidden files, and probably a heap of other third party preferences. I think most here are trying not to install such third party tools.


Pete

Reply

Dec 23, 2013 11:52 AM in response to MJAtlas

MJAtlas wrote:


You guys are completely nuts - Just use OnyX -- t's built in to every mac os.


One check box, vs whatever insanity you're trying to script..

OnyX is not installed with the OS, and it does exactly what everybody has already suggested doing. It doesn't do anything other than run the Terminal commands posted. The problem here is that those commands are not working or not sticking.

Reply

Dec 23, 2013 11:54 AM in response to Michael Kühnel

Michael Kühnel wrote:

I really need to show hidden files with my default user.

What is driving this tireless yearning to see the hidden files?


I've rarely had a need to see the hidden files. I've edited quite a few of them, but I never needed to see them to do that. Maybe there is another way to accomplish what you want.

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to show hidden files in Finder (OS X 10.9)?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.