Created
August 9, 2022 11:15
-
-
Save ilobko/7a265d99adc59e5f8f1df15b5ea3f0b5 to your computer and use it in GitHub Desktop.
Revisions
-
ilobko revised this gist
Aug 9, 2022 . No changes.There are no files selected for viewing
-
ilobko created this gist
Aug 9, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ set windowWidth to 1280 set currentApplication to (path to frontmost application as Unicode text) tell application currentApplication set windowBounds to bounds of the front window set upperLeftX to item 1 of windowBounds set upperLeftY to item 2 of windowBounds set lowerRightY to item 4 of windowBounds set bounds of the first window to {upperLeftX, upperLeftY, upperLeftX + windowWidth, lowerRightY} end tell