Skip to content

Instantly share code, notes, and snippets.

@phstc
Last active July 13, 2020 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phstc/3378012eda59d2a8fe5c7ca19967503d to your computer and use it in GitHub Desktop.
Save phstc/3378012eda59d2a8fe5c7ca19967503d to your computer and use it in GitHub Desktop.
tell application "Google Chrome" to set the bounds of the front window to {1376, 0, 3440, 1440}
tell application "iTerm" to set the bounds of the front window to {1376, 0, 3440, 1440}
tell application "Slack" to set the bounds of the front window to {0, 0, 1376, 1440}
tell application "System Events" to tell application process "WhatsApp"
tell window 1
set {size, position} to {{1376, 1440}, {0, 0}}
end tell
end tell
tell application "System Events" to tell application process "Code"
repeat with x from 1 to (count windows)
tell window x
set {size, position} to {{2064, 1440}, {1376, 0}}
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment