How to find out information about all opened windows on the desktop.

Joined
Jun 30, 2007
Messages
1
Reaction score
0
Hi!

I want to find out the the size and position of all opened windows on the desktop.

The only thing I've found is that NSAccibility has a function that is named
accessibilityHitTest. It returns the deepest descendant of the accessibility hierarchy that contains the point point, which is in lower-left relative screen coordinates.

I hope there is some other way to find all visible windows on the desktop, since I do not want to search every single pixel on the desktop with this method. It would take too long time.

I hope someone have some kinds of tips where to look.
thx
pir
 
Joined
Nov 26, 2010
Messages
3,540
Reaction score
51
Nope. Each App on OSX is very separate and its very difficult for one App to reach out and query every other App.

If you are only interested in a single other App you can use Scripting Bridge, or Accessibly Kit.

Sorry OSX is designed to not allow this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top