red character 'A' without the horizontal bar Achraf Kassioui

Resize macOS Windows

Blog / Apple Dev,

Use Terminal to resize app windows to a specific size. Useful for screenshots.

Paste this command in a Terminal window:

osascript -e 'tell application "System Events" to tell process "Video Crop" to set size of front window to {1280, 800}'

Change 1280, 800 to the desired width and height in points. Replace Video Crop with the target app name.

The first time you use this, Terminal will require permission in System Settings > Privacy & Security > Device Control and Data Access.