Solved

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

Posted on 2003-11-28
3
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is it possible to combine several text files into one big one? (redhat v5 enterprise) 4 114
iSeries FTP Exit Program 8 170
not able to insert into temp table 68 178
Change to event 1 135
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: 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…
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.

738 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