Refreshing Finder window view after sorting files I have a simple script:

tell application "Finder"
    activate
    set sort column of list view options of Finder window 1 to size column
end tell


It works, but the problem is that the window is stale and does not immediately reflect the new order of the files. I have to change the target of the window to a different directory and then navigate back to see the files sorted by size.
There doesn't appear to be a proper solution to this. Here is a workaround hack:

Applescripts not working in Finder since Mavericks