Skip to content

Instantly share code, notes, and snippets.

@walterpalladino
Created October 18, 2018 16:36
Show Gist options
  • Save walterpalladino/1c38dadc5d3714345351ceb35152b509 to your computer and use it in GitHub Desktop.
Save walterpalladino/1c38dadc5d3714345351ceb35152b509 to your computer and use it in GitHub Desktop.
How to Open the Unity Window on Mac OS X on a 16:9 relationship (1280x720)
tell application "Unity" to activate -- needs to be in front
tell application "System Events" to tell application process "Unity"
try
get properties of window 1
set size of window 1 to {1280, 720}
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