Skip to content

Instantly share code, notes, and snippets.

@anacunha
Last active January 10, 2024 16:29
Show Gist options
  • Save anacunha/e20301fe2db607428375535f849d5994 to your computer and use it in GitHub Desktop.
Save anacunha/e20301fe2db607428375535f849d5994 to your computer and use it in GitHub Desktop.
Resize window macOs
tell application "Firefox"
set bounds of front window to {300, 30, 2220, 1110}
end tell
tell application "iTerm"
set bounds of front window to {300, 30, 2220, 1110}
end tell
tell application "System Events" to tell process "Code"
tell window 1
set size to {1920, 1080}
set position to {300, 30}
end tell
end tell
-- Version for Macbook Monitor
tell application "Firefox"
set bounds of front window to {10, 50, 1770, 1040}
end tell
tell application "iTerm"
set bounds of front window to {10, 50, 1770, 1040}
end tell
tell application "System Events" to tell process "Code"
tell window 1
set size to {1760, 990}
set position to {10, 50}
end tell
end tell
--
tell application "Google Chrome"
set bounds of front window to {50, 50, 1458, 842}
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment