Get window position of app (macOS)

Is there a way to get the window position of another app running?

I do it with AppleScript but without ??? :thinking:

It looks like you can ask CoreGraphics:
https://www.monkeybreadsoftware.net/class-cgsconnectionmbs.shtml
https://www.monkeybreadsoftware.net/class-cgswindowmbs.shtml

2 Likes