I’d like to be able to select (with the mouse), some window that’s visible on the screen, store it’s size. I also want to be able to modify the size of some window that’s visible on the screen. The window is not a window within my own app.
How can I do this in Cocoa?
You can use the Accessibility API to control other apps’ windows (and more).