Last active
August 29, 2015 14:13
-
-
Save komagata/c6049db24af1af8ace32 to your computer and use it in GitHub Desktop.
Window set to 1280x720px.
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
#!/bin/sh | |
echo "Setting $1 bounds to 720p" | |
# 720p is 1280x720. | |
# Bounds is startX, startY, endX, endY. Adjust size from starting position to account for this | |
osascript -e "tell application \"$1\" to set the bounds of the first window to {0, 0, 1280, 720}" | |
# activate the app, to bring it to the front | |
osascript -e "tell application \"$1\" to activate" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment