Manage Finder windows with AppleScript (update needed)
Hi all,
This older AppleScript no longer works like it used to... I would like to control the width of the Finder window list view columns..
Is there a way to get it working again?
-- otherFolder is just some secondary folder that you jump away from main to this one then back - that was a temp workaround to help activate the changes made on the primary folder
set otherFolder to alias ((path to library folder as text) & "Documentation:")
tell application "Finder"
activate
select Finder window 1
set current view of Finder window 1 to list view
set bounds of Finder window 1 to {50, 45, 1400, 900}
set width of column id name column of list view options of Finder window 1 to 750
set width of column id kind column of list view options of Finder window 1 to 153
set width of column id modification date column of list view options of Finder window 1 to 190
set width of column id size column of list view options of Finder window 1 to 99
set sidebar width of window 1 to 200
-- new for mavericks (see how old this is!)
set frontWindowTarget to target of front window as alias
set sort column of list view options of Finder window 1 to modification date column
set sort direction of column id modification date column of list view options of Finder window 1 to reversed
-- this next step is needed to help activate the main window changes as described above
tell front window
set its target to otherFolder
set its target to frontWindowTarget
end tell
end tell