Solved

How to obtain the title of the active window on OS-X

Posted on 2003-11-28
3
206 Views
Last Modified: 2013-12-26
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,

- Peter
0
Comment
Question by:Melandra
3 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 250 total points
ID: 9846375
0
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 10092817
In Cocoa:

[[NSApp keyWindow] title]

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 31
Complete beginner needs help making a cron job 9 104
post4 challenge 28 83
Making an alias 7 54
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now