How to get representedFilename property from AXWindow (Accessibility API)

Discussion in 'Mac Programming' started by Xino, Nov 17, 2011.

  1. Xino macrumors member

    Joined:
    Sep 5, 2008
    #1
    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?
     
  2. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    I don't know if this helps, but the Notes specific to Mac OS X 10.3 section of the Developer Release Notes: Cocoa Application Framework (10.6 and earlier) says:
     

Share This Page