Hey Folks,
Yvan Koenig very accurately put it this way:
“If the sum of the defined [visible] column widths is smaller than the width of the window, the first column is given the greater possible width so that the entire window is used.”
The rest is most of what I posted on ASUL about a ten days ago. I haven’t gotten back to it yet, but I have a number of scripts to fix and will when I get frustrated enough.
set altTarget to path to favorites folder
tell application "Finder"
if front window exists then
set _target to target of front window as alias
if _target = altTarget then set altTarget to path to home folder
tell front window
set bounds to {0, 44, 1040, 1196} # Must be less than the aggregate column widths.
if current view ≠list view then
set current view to list view
end if
tell its list view options
set width of column id creation date column to 141
set width of column id modification date column to 141
set width of column id size column to 97
set width of column id name column to 450
end tell
set target to altTarget
set target to _target
end tell
end if
end tell
Mavericks broke my old window-resize/column-resize scripts, so I’ve spent some time fiddling with it and have an imperfect workaround.
I think we’re dealing with both bugginess in the Finder, and a change in the way it displays windows in list-view.
In Mavericks when you zoom a window beyond its columns the name column automatically widens, and this breaks the current name-width-setting in that window.
Depending upon the window width and the columns visible (other than the name column) it may or may not be possible to set the width of the name column AND changing the bounds of the window MAY break the name-width-setting you just set via Applescript.
So for experimental purposes you can reduce the columns in your front window to name, mod-date, and size. Then run my script. Then resize the window by hand. Try widening it. Try reducing the width.
Then turn on cre-date, kind, comments, and tags and run the script again.
This time it works - as long as you don’t widen the window width beyond the sum of its columns.
You’ll also notice that the changed width of the name-column is not registered unless you change the target and then jump back.