I would like to resize a window a bit like System preferences or most other preference windows when I change tabs (hide/unhide custom views), the closest I can get this effect is:
windd's setFrame_display_animate_({{item 1 of (item 1 of (windd's frame() as list) as list), (item 2 of (item 1 of (windd's frame() as list) as list)) + ((item 2 of (item 2 of (windd's frame() as list) as list)) - 200)}, {900, 200}}, true, true)
And setting the size I want by changing those numbers, this is long, and sounds a bit too hard to be true, is there a more automatic or shorter way?