Skip to content

Instantly share code, notes, and snippets.

@brynbodayle
Created February 9, 2014 23:15
Show Gist options
  • Save brynbodayle/8907585 to your computer and use it in GitHub Desktop.
Save brynbodayle/8907585 to your computer and use it in GitHub Desktop.
AppleScript to set the position and size of a window.
tell application "System Events" to tell application process "Safari"
try
get properties of window 1
set position of window 1 to {438, 22}
set size of window 1 to {1669, 1418}
on error errmess
log errmess
-- no window open
end try
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment