-
-
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)
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