Created
February 9, 2014 23:15
-
-
Save brynbodayle/8907585 to your computer and use it in GitHub Desktop.
AppleScript to set the position and size of a window.
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 "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