I'd like to set up a keyboard shortcut to trigger the "Right Size All Columns Individually" command that Finder's column view has when you right-click on a column divider.
Is it possible to access and trigger that command with an AppleScript? Or perhaps it's possible to recreate the same functionality with an AppleScript? From there, I'd be able to set up a key command to trigger the script.
I am aware of Finder-enhancers that have auto-column-sizing options built in like TotalFinder and XtraFinder, but both of those have proven to make Finder unstable at times on all versions of macOS that I've used. Plus I'd rather not disable System Integrity Protection.