I'm trying to fid out whether it's possible to obtain the title of the active window by any means in OS-X. I'm aware of OSAXen that can tell you the active application; what I'm looking for is the window title of the single active window, no matter what the application is.
The other approach would, presumably, be to use the Accessibility interfaces as if I was a screen reader or similar, and see whether the title is available in that way.
Has anyone done this, or can anyone point me in the direction of appropriate documentation? I'm at the feasibility stage at the moment; points will be awarded to any answer that shows it is feasible. I don't need working code (although that would, of course, be a bonus!)
Thanks in advance,