I'd like to know how apps like Divvy, Cinch, SizeUp, etc. resize / move windows belonging to other applications? I know that this might involve private APIs. Or do they all use AppleScript? Are there any resources out there about how to do it?
Most windows can be manually resized. Drag the window's edge (top, bottom, or sides) or double-click an edge to expand that side of the window.
To resize a window, put your cursor over the edge until you see a double headed arrow. 1. Hold down the Option key while resizing a window: This will resize the window equally on both sides. 2.
A while back I wrote about using AppleScript to do just that. Basically, do the following:
tell application "MyApp"
set the bounds of the first window to {x, y, width, height}
end tell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With