I can't get this reversed thing to work:
Tell application "Finder" to set the sort direction of the modification date column to reversed
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
There is a bug in 10.7 and 10.8 where changing the sort direction doesn't always work unless you change the sort column first (see this question).
tell application "Finder" to tell list view options of window 1 set sort column to name column set sort column to modification date column set sort direction of column modification date column to reversed end tell
There are some useful links in the answers to this question. I would recommend using the Accessibility Inspector, which is part of XCode, to find the names of the various elements you are trying to address with your script. You can also try some of the scripts linked here, in particular the first one (edited slightly):
set appname to "Finder" set winstuff to "defaultval" set menustuff to "defaultval" tell application appname activate end tell tell application "System Events" tell process appname set winstuff to entire contents of front window set menustuff to entire contents of menu bar 1 end tell end tell --return winstuff & "rrrr" & menustuff -- comment this out to get just winstuff return winstuff -- comment this out too to get just menustuff --return menustuff
Unfortunately I'm not in front of a Mac right now, but from these tools you should be able to find out the element to address.