tell application "Finder"
tell front window
tell its list view options
# Fails
tell column id kind column
if (get its visible) = true then
set its visible to false
else
set its visible to true
end if
end tell
# Fails
tell column id size column
if (get its visible) = true then
set its visible to false
end if
end tell
# Works
tell column id name column
if (its sort direction) = normal then
set its sort direction to reversed
else
set its sort direction to normal
end if
end tell
end tell
# Force the window to update after changing the sort
set newFl to make new folder at (its target as alias) with properties {name:"wtf?"}
delay 0.05
delete newFl
end tell
end tell