Skip to content

Instantly share code, notes, and snippets.

@pofulu
Forked from walterpalladino/Open Unity 16-9.scpt
Created April 30, 2019 03:07
Show Gist options
  • Save pofulu/0b53151c687328546fb569728a5a846e to your computer and use it in GitHub Desktop.
Save pofulu/0b53151c687328546fb569728a5a846e 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