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.
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