I'm trying to move other applications in OSX using the accessibility API. I actually have this working. But I ran into a major issue.
AXUIElementRef appRef = AXUIElementCreateApplication(self.pid);
This uses the PID of my application to to later move the window. I found that multiple windows have the same PID, and when i try and move the second window of application my app crashes.
Can I move my application using just WindowID?