Skip to content

Instantly share code, notes, and snippets.

@levymetal
Last active November 1, 2022 02:41
Show Gist options
  • Save levymetal/8680412 to your computer and use it in GitHub Desktop.
Save levymetal/8680412 to your computer and use it in GitHub Desktop.
Small applescript that makes the finder window really large then back to its original size to force the name column to resize fluidly. Used to fix a bug in OSX Mavericks whereby the name column is randomly wider than the window. Best to use a tool such as BTT to bind it to a keyboard shortcut, I used CMD + E.
tell application "Finder"
tell the front Finder window
-- get the current bounds of the finder window
set b to the bounds
-- create a really wide window
set the bounds to {item 1 of b, item 2 of b, 3000, item 4 of b}
-- set window back to its original size
set the bounds to b
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment