82

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?

7 Answers 7

77

Yes!

A simple AppleScript can instruct 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

Paste the above text in Script Editor (in the Utilities folder), then use Export -> Application. THAT executable should be dragged, with CommandOption, to the Finder toolbar (that is, the top bar, not the sidebar).

You can change the icon following this answer.

15
  • 13
    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
    Commented Nov 14, 2013 at 21:07
  • 1
    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.
    – t0r0X
    Commented Feb 2, 2014 at 0:26
  • 11
    Great answer, just to make the things a bit clearer: this still works in Sierra. You should paste the content of the answer in Script Editor, then use Export -> Application. THAT executable should be dragged, with cmd+alt, to the finder toolbar (the top bar, not the sidebar) Commented Sep 14, 2017 at 16:45
  • 14
    Wow it is obnoxiously absurd that Apple hasn't built in a simple refresh keyboard shortcut like Windows has had with F5 since Windows 95 or earlier. What is wrong with Apple? Why can't they catch up with the rest of the world sometimes?
    – Sephethus
    Commented Apr 28, 2020 at 20:27
  • 2
    Apple can't seem to figure out a simple refresh functionality in their Finder app in 2022. This is laughably absurd.
    – papar
    Commented Dec 13, 2022 at 17:46
11

If a refresh doesn’t work, three options exist to relaunch the Finder with the third causing all external mounts to drop before things start up again freshly:

  1. Hold the Option key and right-click the Finder icon in the Dock, then select Relaunch.
  2. Press Option-Command-Escape or choose Force Quit from the Apple menu, then select the Finder and click Relaunch.
  3. Log out and log back in to your user account.
4
  • 16
    nowhere near as elegant as simply refreshing the window
    – Tetsujin
    Commented Jan 10, 2015 at 14:04
  • 22
    This sounds insane, I cannot believe this is considered a solution.
    – Sébastien
    Commented Oct 17, 2016 at 8:32
  • 3
    These are three different answers, right? Logging in and out shouldn't be necessary.
    – Jonathan
    Commented Jun 14, 2019 at 14:05
  • 2
    Yes, I believe these are three distinct ways to relaunch Finder. Commented Jul 12, 2020 at 14:49
8
+50

The easiest way to have the Finder refresh its listing is to enter a subfolder and click the back arrow to come back to the original folder. You can also click the back arrow to go to the previous folder, and then the forward arrow.

The other way is to use an Applescript as suggested in Daniel's answer.

Using osascript, this command can be copy/pasted directly into Terminal, without first creating a script:

osascript -e 'tell application "Finder" to tell front window to update every item'
1
  • 1
    Going to different folders and back works for me sometimes but not while moving a couple of 7gig files onto a USB. Even when the files were fully moved it still took minutes until Finder was happy that it had all concluded and updated what it was showing me in both source and destination folders. Commented Jun 23, 2022 at 9:00
6

Disclaimer! - This is not a method to refresh current folder but a method to change folders quickly without having to use mouse or keeping action script open all the time which will eventually refresh the folder view.

It is almost as fast as pressing F5 in windows with only one difference - you need two hands.

First way:

Command - [ and then ] (no need to release Command, just keep it and press other keys quickly - it's fast!) will go to previous folder and back effectively refreshing your view on current folder - same keys are used in Chrome for back and forward.

But sometimes you just opened Finder and there is no folder to go back to. For this case there is:

Second way:

Command - Up and then Down - will go folder up and then folder down thus coming back to your original folder and refreshing the view. Same as in previous case keep Command down all the time. Same keys can be used in general in Finder to go up and inside folder.

2
  • 2
    Honestly, CMD+UP,DOWN is preferable to me than writing a script (for a feature that should be built in). While it's aesthetically annoying to have to actually change directories to get a refresh, it's so fast on the fingers is functionally almost equivalent to, say a CTRL+R that every other domain has (yes, I'm salty). Also, question: is there ALWAYS something for CMD+UP to go to? FYI My application is to see the size of a file go up as it's rendering in iMovie, to make sure it's making progress. Commented Feb 21, 2021 at 16:52
  • 1
    This generally works: the files are updated. But this does not update the icons if the "opens with" is changed.
    – SMBiggs
    Commented May 12, 2023 at 15:12
2

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.

1
  • 4
    This does not work. Commented Feb 16, 2018 at 19:10
1

If it's a remote server, sometime one has to reconnect to refresh the file list.

-3

This worked for me on El Capitan

http://web.archive.org/web/20160525204735/http://www.macupdate.com/app/mac/24714/refresh-finder

1
  • Also this 'applet' doesn't work with El Capitan
    – GlennG
    Commented Jul 21, 2016 at 11:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .