Created
October 18, 2018 16:36
-
-
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)
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 "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