For years I've been using this AppleScript to toggle the sort order of a Finder window:
if sort direction of column id size column of list view options of window 1 is normal then
set sort direction of column id size column of list view options of window 1 to reversed
else
set sort direction of column id size column of list view options of window 1 to normal
end if
(You can replace size
with kind
, name
, modification date
, etc.)
But ever since Lion, this no longer works!
The little arrow in the column header DOES change, but the items do not re-sort.
Any way to get this working?
tell list view options
... excellent! – d0g Aug 10 '12 at 22:27tell column size column
as well:tell column size column ... if sort direction is normal then ... end tell
– d0g Aug 10 '12 at 22:29