A NSWindow object has a representedFilename property which I would like to access via another application.
I'm able to access the window name of another application by using the Accessibility API via the following code:
As said, this code is giving me the window name but I would like to have the represented filename property of the same window. I tried most constants described here: http://developer.apple.com/library/...vel/AXAttributeConstants_h/CompositePage.html but they doesn't provide me with usable data.
Also I tried UIElementInspector to find out if this information is available but also without success.
Is this even possible? Otherwise is it somehow possible to "cast" an AXWindow or CGWindow object to a NSWindow object?
I'm able to access the window name of another application by using the Accessibility API via the following code:
err = AXUIElementCopyAttributeValue( frontMostWindow, kAXTitleAttribute, (CFTypeRef *)&windowName);
As said, this code is giving me the window name but I would like to have the represented filename property of the same window. I tried most constants described here: http://developer.apple.com/library/...vel/AXAttributeConstants_h/CompositePage.html but they doesn't provide me with usable data.
Also I tried UIElementInspector to find out if this information is available but also without success.
Is this even possible? Otherwise is it somehow possible to "cast" an AXWindow or CGWindow object to a NSWindow object?