Note: Mac OSX 10.5.x “Leopard” does not need this. Apple seem to have made some changes in the way Leopard interacts with the file system making automatic refreshes far more instant. ![]()
A small but annoying thing about Mac OSX (version 10.4.x and older it seems) is that sometimes it doesn’t refresh itself when a file or folder is changed - especially when dealing with SMB (Windows) share drives.In Windows you can hit F5 to refresh the current Window, but Apple seemed to have forgotten to add this feature to Mac OSX.
Well I searched the web and finally found an Applescript to do this which is here:
tell application “Finder”
tell front window
update every item with necessity
end tell
end tell
Now thats fine, but I wanted something that would tie into the Finder window. So I grabbed the refresh icon from a Firefox theme (GrApple) and made an Application Package in Script Editor. So here it is for people that want it:
Finder Refresh (5089) - 46.73 KB

From then on just click the button to refresh the currently open Finder window. It works for me, and now one small thing no longer annoys me
1.1 Update Note: I have added the code necessary to make this script run in the background (so it’s more integrated) and rolled the version number to 1.1 . Thanks to this post here for the necessary steps.
1.2 Update Note: Thanks to commenter kristaps, the issue with the edit screen coming up has been fixed. I have added the change and rolled the version number to 1.2
Regards,
Shane.
March 17th, 2008 at 12:34 pm
Running mail 2.1 and OSX 10.4.11 it often takes minutes for the inbox or sent screen to refresh and display message lists after switching from one box to another. 0 messages displayed. Frequently happens after I organize or file a number of messages. Would your refresh script work inside mail ?
I cannot upgrade OSX because I have a legacy system 9 application that is critical to my work.
March 6th, 2008 at 8:39 am
Thanks so much for finding this - it has been bugging me and as I am no expert in programming or Applescript I hadn’t found a solution. I have applied the change and the version number is now 1.2
Regards,
Shane.
March 6th, 2008 at 1:51 am
When trying to refresh an empty folder, then pops up that window with EDIT and OK buttons.
Solution is to put the script in try … end try block.
Basically it should look like this:
try
tell application “Finder”
tell front window
update every item with necessity
end tell
end tell
end try
February 7th, 2008 at 8:31 am
Excellent tool! I have always wanted this feature in OS X.
January 25th, 2008 at 10:55 pm
Yeah ! great, thanks !
I had the problem with tiger, but I still had it with leopard ! (the shares appears randomly anyway, sometimes after 30 secs, sometimes 1 min, or more… maybe I’m a bit impatient sometimes but that hack just solves my problem
)
cheers
January 24th, 2008 at 3:14 am
Thank you! I’ve been complaining about this for years. Finally a solution reveals itself. (Only wish I had found it sooner.)
January 22nd, 2008 at 8:00 am
Thanks a million! You have just saved me a few precious seconds of my life
December 16th, 2007 at 2:05 am
Dear Mr. Lord,
Your app sounded like the perfect solution to a very annoying problem I am having with Finder updating restored files. However, when I try to open it I get a message saying it couldn’t “get every item of window 1 of application Finder”. It then gives me a choice of “EDIT” or “OK”. Choosing EDIT doesn’t seem to do anything. If I choose “OK”, the message window closes. If I then go on and drag the app to my app folder and place the refresh icon in the Finder tool bar, it doesn’t seem to do anything when ‘clicked’ on. If I do a ‘manual’ re-launch of Finder, things go fine.Any suggestions? Am I installing it correctly? Appreciate any help.
Sincerely,
Steven Dore