Last active
August 7, 2018 00:35
-
-
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.
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
-- 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