kAXFilenameAttribute supported?
kAXFilenameAttribute supported?
- Subject: kAXFilenameAttribute supported?
- From: Modesitt Software <email@hidden>
- Date: Thu, 22 Jan 2004 13:36:35 -0800
In my code I call AXUIElementCopyAttributeValue with attribute
kAXTitleAttribute or kAXDocumentAttribute, and it works fine. But if I
use the kAXFilenameAttribute attribute, I always get a return error of
kAXErrorAttributeUnsupported.
I am trying to obtain the file name, so now I have to use
kAXDocumentAttribute and parse the file name out of the file path name
(and hoping there are no "/" characters in the file name).
Is there any reason why kAXFilenameAttribute returns
kAXErrorAttributeUnsupported? Or is it really not yet supported? I'm
using OS 10.3.
Sample code in use:
CFTypeRef cfRef;
// window title works fine
err = :AXUIElementCopyAttributeValue( theElementRef,
kAXTitleAttribute, &cfRef );
// file path works fine
err = ::AXUIElementCopyAttributeValue( theElementRef,
kAXDocumentAttribute, &cfRef );
// returns kAXErrorAttributeUnsupported
err = ::AXUIElementCopyAttributeValue( theElementRef,
kAXFilenameAttribute, &cfRef );
Thanks!
Bill Modesitt
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.