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

Click here to return to the 'Create a Finder window update key' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a Finder window update key
Authored by: highbrow on May 25, '04 04:31:03AM

I tried this script, and called it via iKey; I also downloaded and installed Nudge.

For a folder on an smb share on a PC, Nudge won; the script above didn't detect new files added to a shared directory, new files would only show up if a previously present file was deleted on the PC, and then the script called. Nudge seems to refresh all files, inc. new ones, each time.

Working in an x-platform environment, this situation has driven me nuts for a long time, I'm glad this hint pointed me to a solution (even if it wasn't the solution itself ;-).

Using the down arrow key to move though a list view window sorted by date modified, and having the currently selected item jump to the top of the list as it is selected, is an embarassment in a modern OS....

[ Reply to This | # ]
Create a Finder window update key
Authored by: osxpounder on May 25, '04 04:29:08PM

I see what you mean; that's a pity, because the main reason I wanted this refresh-key ability was for refreshing Samba shares. I confirmed your results by a test:

I connected via smb to a PC in my office. I opened a folder, and copied some files into it from my Mac.

At the PC's keyboard, I selected all the files in that folder, pressed CTRL-C, then CTRL-V to paste copies of them. 7 new files appeared on the PC's screen.

I ran the script:

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

... and no refresh occurred. I also clicked on a file in the shared folder, in Finder. No refresh. Switching to Icon or Column views, or back again, caused no changes, nor did CMD-A to select all files.

But when I Option-dragged a file to copy it, it copied, then the window refreshed.

Meanhile, on the PC [they are both on the same desk], the folder windows updated instantly, every time a change was made. I haven't tried it the other way round, to see if Windows will update a shared OSX folder. I always connect to the PC from the Mac because that's faster on our network [less time waiting for the authentication stuff].

I think I'll just wait for the hoped-for Finder update, based on the revelation that FreeBSD has recently been updated [see above].


[ Reply to This | # ]
Create a Finder window update key
Authored by: sfgecko on May 25, '04 05:49:09PM

Actually, doing a CTRL+C and CTRL+V to copy files on the Windows side doesn't require this script to refresh from the Mac view. I tried this scenario, and for me Finder automatically refreshes the SMB shared folder contents when I click into it. So the script isn't even necessary for this scenario.

[ Reply to This | # ]
Create a Finder window update key
Authored by: sfgecko on May 25, '04 05:46:11PM

The script works fine for me to refresh an SMB shared folder on Windows XP. Not sure why it doesn't work for you.

[ Reply to This | # ]