How to Auto Resize Application Window on Mac

How to Auto Resize Application Window on MacOS. Resize App Window on Mac to Exact dimensions. Resize and position any Application Window to a specific size on MacOS using Applescript editor. e.g Safari, Google Chrome, etc to a specific size creating an Applet Script.


Watch: Latest Posts    Subscribe: Newsletter

➥ Try Amazon Prime Try for 30 days Free
➥ Amazon Coupons!! Get your Coupons.
➥ Best Amazon Today’s Deals.

Auto Resize Application Window on Mac

To Resize Application window on the desktop to an exact size.
Open the AppleScript editor and copy this script 1:

set theApp to "Google Chrome"
set appHeight to 1080
set appWidth to 1920

tell application "Finder"
set screenResolution to bounds of window of desktop
end tell

set screenWidth to item 3 of screenResolution
set screenHeight to item 4 of screenResolution

tell application theApp
activate
reopen
set yAxis to (screenHeight - appHeight) / 2 as integer
set xAxis to (screenWidth - appWidth) / 2 as integer
set the bounds of the first window to {xAxis, yAxis, appWidth + xAxis, appHeight + yAxis}
end tell

To Resize and Position App Window open the AppleScript editor and copy this script 2:

set theApp to "Safari"
set appHeight to 720
set appWidth to 1280
set positionY to -100
set positionX to 1000

tell application "Finder"
set screenResolution to bounds of window of desktop
end tell

set screenWidth to item 3 of screenResolution
set screenHeight to item 4 of screenResolution

tell application theApp
activate
reopen
set yAxis to (screenHeight - appHeight - positionY) / 2 as integer
set xAxis to (screenWidth - appWidth - positionX) / 2 as integer
set the bounds of the first window to {xAxis, yAxis, appWidth + xAxis, appHeight + yAxis}
end tell

Next, change the app name to any App Window you wish to resize.

Hit play (or press command-R) to run the script, and the window should resize to the the center of the Desktop with exact size you have pre defined. This script works for the majority of MacOS Applications.

To finish, from Script editor file menu, click to export as Application.

Thanks for watching and stay connected subscribing the Newsletter
Make use of a good VPN to hide your presence online! Hide your IP Address and get your privacy and security. You need a Virtual Private Network to keep your data encrypted and secure. Watch this video and choose the best VPN service for you.

Contribute translating our videos. ?

Auto Resize Application Window on Mac