Re: How to access control-click context menu popup using GUI Scripting?
Re: How to access control-click context menu popup using GUI Scripting?
- Subject: Re: How to access control-click context menu popup using GUI Scripting?
- From: Zack Jarrett <email@hidden>
- Date: Mon, 15 Dec 2008 17:18:34 -0700
Very interesting. I tried iPhoto just now myself and I can't figure out how to address the contextual menu itself. I'm experiencing the exact same thing you are. I found an old thread from 2006 on this subject in which Bill Cheesman writes about these mismatches:
There may be no way to do what you want, but I'm going to play with it a bit.
Zack On Dec 15, 2008, at 12:27 PM, Dalmazio Brisinda wrote: And when I open UI Inspector it shows the following hierarchy when I have my mouse over the menu item I wish to click:
<AXApplication: “iPhoto”> <AXWindow: “iPhoto”> <AXGroup> <AXSplitGroup> <AXSplitGroup> <AXScrollArea> <AXOutline> <AXMenu> <AXMenuItem: “Sort Albums”>
The thing is I can't get it to actually click the "Sort Albums" menu item! How do I reference the context menu object brought up by performing the action "AXShowMenu"? I'm thinking I need to do something similar to clicking a regular menu item and inserting this line in the inner tell block based on the above information from UI inspector:
click menu item "Sort Albums" of menu 1
But this doesn't work. AppleScript can't get "menu 1"
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden