Skip to content

Instantly share code, notes, and snippets.

@corypina
Last active August 31, 2023 18:54
Show Gist options
  • Save corypina/3131351 to your computer and use it in GitHub Desktop.
Save corypina/3131351 to your computer and use it in GitHub Desktop.
Resize front window to specific size.
tell application "System Events"
set frontmostApplication to name of the first process whose frontmost is true
end tell
-- The bounds are the top-left and bottom-right coordinates on your screen, eg. {x, y, x, y}
tell application frontmostApplication
set bounds of the first window to {15, 38, 1760, 995}
end tell
@psabadac
Copy link

you're the best

@corypina
Copy link
Author

@psabadac Ha! Glad to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment