Re: Getting other application's window/document name
Re: Getting other application's window/document name
- Subject: Re: Getting other application's window/document name
- From: Eric Schlegel <email@hidden>
- Date: Thu, 21 May 2009 23:55:24 -0700
On May 21, 2009, at 11:32 PM, John Ku wrote:
I should have been more specific in the question sorry.
And you are right, just tried this with Adobe Photoshop and gave me
at least twenty entries for photoshop's floating windows and
palettes and others like spotlight, systemUI Server. With background
processes, I could probably match it against with what I get from
NSWorkspace/LaunchedApplication, but the palettes and inspectors are
there. Too trigger happy on my part. :P
Perhaps there is a tricky way to filter it, all I need is to get
only the launched Applications and their window/document if any. Any
ideas?
Depending on exactly what your purpose is in gathering this info, you
might also be able to use the Accessibility API to get the AXDocument
attribute of the window. That will be the path to the on-disk document
represented by the window. That won't help in cases where the window
has no on-disk document, however.
-eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden