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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to