Skip to content

Instantly share code, notes, and snippets.

@itsamoreh
Last active August 7, 2018 00:35
Show Gist options
  • Save itsamoreh/f07a6246cefa534ad95f2d3c2b93d434 to your computer and use it in GitHub Desktop.
Save itsamoreh/f07a6246cefa534ad95f2d3c2b93d434 to your computer and use it in GitHub Desktop.
Resize the current application's window to 1920x1080 and center it on a 2560x1440 display.
-- Add this to automator and run with a keyboard shortcut.
-- System Preferences > Keyboard > Services > (Scroll to bottom and assign this script to a shortcut)
on run {input, parameters}
try
tell application (path to frontmost application as text)
activate
set the bounds of the first window to {320, 191, 2240, 1271}
end tell
on error errMsg
display dialog "ERROR: " & errMsg
end try
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment