Resize Any Mac App to a Precise Size

white arrow painted on brick wall

Using Mac’s Automator app you can resize the current window by creating a new “Quick Action”. Once created this action will appear in your services list for every application.

automator resize

Here is the AppleScript to set a window to the size 720p (1280px by 720px). However, some applications like PhpStorm do not have window bounds and will not work.

tell application "System Events"
    set theApp to get name of first process whose frontmost is true
end tell

tell application theApp
    set bounds of front window to {0, 0, 1280, 720}
end tell

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.