Last active
January 10, 2024 16:29
-
-
Save anacunha/e20301fe2db607428375535f849d5994 to your computer and use it in GitHub Desktop.
Resize window macOs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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