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.
Subscribe Newsletter | Amazon Today’s Deals | Coupons
Get your Apple Mac on Amazon.
Check on each product page for other buying options.
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.
Follow us and be the first to know. Subscribe our: Newsletter | ABP Channel | Amazon Store .
learn share is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed for sites to earn advertising fees by advertising and linking to Amazon.com