Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I love my Mac and how things generally just work. Now and again, however, one finds a few annoyances. My latest one is that I cannot find a refresh button anywhere to update a file listing in a Finder window.

Please note that I am aware that refreshing is generally not needed as new files are automatically added to Finder windows. In my case I have a NAS on my network, and to update a file listing in a NAS folder I currently need to change directory to somewhere else and then back again to see new files.

Is there a way to request an updated file listing in a Finder window?

share|improve this question

3 Answers 3

up vote 14 down vote accepted

Yes!

A simple AppleScript can tell the Finder to tell its front window to update every item. Such an AppleScript can be saved as an Application and then dragged to the Finder toolbar to give you a refresh button

The AppleScript you need is quite simple:

 tell application "Finder" to tell front window to update every item
share|improve this answer
4  
Just as a footnote: In Macericks you need to press [cmd]+[alt] as you drag the app to the Finder toolbar. This is an excelent answer (just used it and works great) –  Barranka Nov 14 '13 at 21:07
    
Indeed, Daniel's solution works great. Although I wish there was a way to run the script without having the AppleScript open. Also thanks to Barranka for the hint about pression CMD and ALT keys. –  Victor Feb 2 at 0:26
    
Thanks for this workaround. Maybe I create a daemon which runs this script once per second (but that's not very power efficient), although that polling approach is not very power efficient, would prefer Finder to automatically properly update based on file system events. Isn't there a fix for this? (Erasing com.apple.finder.plist and .DS_Store in affected folders did not fix it for me). –  porg Mar 6 at 11:43

I just created the script and then saved as an APP. I then added the app to my toolbar. That way which ever window is active becomes the front window. This does not require that AppleScript be running.

share|improve this answer

I've noticed that changing the view in Finder seems to refresh the content of the Finder window. What I mean by changing the view is going from e.g. Icon view to List. I've not done any extensive testing, but it did the trick for me last night when I copied a file into the NAS box in the Terminal, while the directory I copied the file into was also open in Finder.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.