Solved

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

Posted on 2003-11-28
3
209 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 161
fizzArray  challenge 1 57
matchUp  challenge 9 91
Change to event 1 99
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

929 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

10 Experts available now in Live!

Get 1:1 Help Now