Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Size an OSX window to 720p (1280x720)

View 720p.sh
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env bash
 
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 {250, 220, 1530, 940}"
 
# 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
Something went wrong with that request. Please try again.