How I can manipulate window opening of other apps on macos

Hi all, I am new in Rust, and I wondered how I could intercept window opening other apps using Rust.

For example:
If I open Google Chrome, I can set a specific position on the screen and the same for the next app.

And the question is, how I can intercept this window opening and set my custom position?

There's nothing built-in in Rust for this. You will have to use Apple's macOS-specific APIs. You will need to use ObjC Cocoa APIs. There are higher-level bindings for some core macOS APIs, but I don't think anyone has made higher-level wrappers for windowing yet, so you will be on your own.

To be honest, if all you need is to manipulate macOS windows, then you're better off using Swift.