Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Refresh Finder windows via AppleScript Desktop
For a long time, I was very annoyed with the lack of a Refresh command in Finder windows, until I found out that I could force any Finder window to refresh just by creating a new folder and then deleting it. So I wrote the following simple script to automate it:
tell application "Finder"
  delete (make new folder at (front window))
end tell
I've added the script to the Finder toolbar, so that refreshing any Finder window takes just one click.
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[16,867 views]  

Refresh Finder windows via AppleScript | 8 comments | Create New Account
Click here to return to the 'Refresh Finder windows via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I assume you have not upgraded to 10.4
Authored by: slaterecords on May 31, '05 10:53:50AM

…as Finder refreshing/updating has been fixed in 10.4.



[ Reply to This | # ]
I assume you have not upgraded to 10.4
Authored by: doneitner on Jun 03, '05 01:07:57AM

Fixed in what way? I upgraded from Panther to Tiger. Maybe I haven't tested it enough but I haven't noticed any change in folder refreshes.

And unfortunately there's still no simple/official way to sort all folders first and then all files by name, size, etc. Every advancement in the way folders works still leaves this very handy feature lacking.



[ Reply to This | # ]
I assume you have not upgraded to 10.4
Authored by: user12717 on Jun 14, '05 02:41:39PM

The update problem hasn't been completely fixed in 10.4. I work daily with a mixed network of Windows and OS X computers and I constantly run into the problem of the Finder not properly updating Samba folders. If I open a folder on a remote Windows machine using Samba, and then the files in that folder are modified from the Windows machine, the Samba folder isn't always updated by the Finder. I've tried every trick and setting I can think to fix this problem, because it is very annoying, but the only one that is 100% effective is to create a new file or folder in the Finder and then delete it, it forces the Finder to flush its cache and reread the folder.



[ Reply to This | # ]
Refresh Finder windows via AppleScript
Authored by: scotty321 on May 31, '05 11:01:44AM

Yes, as the poster above stated, this issue has been fixed in 10.4.



[ Reply to This | # ]
Refresh Finder windows via AppleScript
Authored by: macintron on May 31, '05 11:22:28AM
This is easier (from an old hint):

try
  tell application "Finder" to update items of front window
end try


[ Reply to This | # ]
Refresh Finder windows via AppleScript
Authored by: m@ on May 31, '05 12:45:58PM

i found this little app rather useful prior to 10.4. Really useful to sync what you see with what you are doing at the CLI.

FinderSync

http://www.manyetas.com/findersync.html



[ Reply to This | # ]
Refresh Finder windows via AppleScript
Authored by: pmaiorana on May 31, '05 06:32:50PM
Those of you still on Panther should check out the Nudge contextual menu plugin. It provides the same functionality.

[ Reply to This | # ]
Refresh Finder windows via AppleScript
Authored by: starb on Sep 23, '05 03:53:25PM

I think this is the same hint as this:
http://www.macosxhints.com/article.php?story=20040520143650679



[ Reply to This | # ]