Another, perhaps more reliable, approach to keeping Finder column views right-sized.
I've stuck to KM actions wherever possible, using GUI AppleScripting only to get the coordinates of the first column separator. I've found this faster and more reliable than fixed coordinates or element image coordinates.
Thank you so much for sharing. I cannot believe I found this fresh-baked (2 weeks ago) macro, when I finally decided to ditch any third-party finder alternatives due to reliability. With this macro, I almost replicated all other (important) functions found in Finder alternatives out there
In my case, I modified the coordinates a bit because the "column adjuster" appears at the bottom of screen on my computer (sonoma 14.2.1)
tell application "Keyboard Maestro Engine"
setvariable "xDoubleClick" to x1 - 1
setvariable "yDoubleClick" to y1 - 1
end tell
I am on Sonoma and I can't believe how reliably this seems to be working and what a smart approach to have the trigger being the "focus window title change"! Huge tank you for providing a solution to one most annoying things of macOS!