Finder: Resize Name-Column To-Fit

Hey @skillet,

Try this:

----------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2018/01/04 20:10
# dMod: 2018/01/04 20:16 
# Appl: Finder
# Task: Adjust widths of the name column and the mod date column in the front window.
# Libs: None
# Osax: None
# Tags: @ccstone, @Applescript, @Script, @Finder, @Adjust, @Widths, @Name, @Column, @Modification, @Date, @Front, @Window
----------------------------------------------------------------
property nameColumnWidth : 400
property modDateColumnWidth : 150
----------------------------------------------------------------

set otherTarget to path to favorites folder -- For use in getting the view to reset.

tell application "Finder"
   
   set winTarget to target of front window as alias
   
   tell front window
      if its current view ≠ list view then set its current view to list view
      
      tell its list view options
         set width of column id name column to nameColumnWidth
         set width of column id modification date column to modDateColumnWidth
      end tell
      
      -- etc.
      
      set target to otherTarget
      delay 0.05
      set target to winTarget
      
   end tell
   
end tell

----------------------------------------------------------------

-Chris