0

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.

  • Apologies if I'm completely off the point, but do shell script "killall Finder" after end tell refresh it for you? – user321280 Feb 17 at 6:31
1

There doesn't appear to be a proper solution to this. Here is a workaround hack:

Applescripts not working in Finder since Mavericks

You must log in to answer this question.

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