I've been trying to get menus to execute with calls to System Events via Applescript,. Since System Events requires Universal Access to be enabled, it leads me to believe that it uses the same mechanism as the Accessibility methods. I have found that some applications respond to System Events menu calls perfectly and some not at all or not very well (like RB). So you might want to make sure that you're working with an application that you know should be responding to your efforts to manipulate its menus just to eliminate that as a possible cause of good code note working correctly.
On 7/20/06, Patrick Cusack <[EMAIL PROTECTED]> wrote:
Does anyone have any familiarity with MBS' Accessibility methods? I am trying to set an AXUIelement's value using the setattribute method. MyAXUIelementMBS.setattribute(systemwideAXUIelement.kAXMenuItemMarkCharA ttribute, AXValueMBS) the kAXMenuItemMarkCharAttribute is the checkmark located next to a menuitem when it is checked. I am trying programatically uncheck a menuitem. The kAXMenuItemMarkCharAttribute is a CFStringMBS which is either an empty string (&h000000) or a check (&hE29C93). I copy the handle of a CFStringMBS (either an empty string or a check) to a new AXValueMBS, and pass the AXValueMBS. However, this never seems to check or uncheck the menuitem. Has anyone ever done this?
_______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
