Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ADO Memory leak with DELPHI 2007 37 181
mixString challenge 36 120
windows 10 how make picture as desktop background 2 62
Unix Command -- Challenging  question 7 88
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

813 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