Contextual Menu items using System Events
Contextual Menu items using System Events
- Subject: Contextual Menu items using System Events
- From: "John R." <email@hidden>
- Date: Fri, 24 Feb 2006 13:38:02 -0500
How do I get System Events to select an item on a contextual menu?
UI Element Inspector showed me the AXShowMenu action to get the menu for an Image UI Element in Mail. The result is a new "Menu" item in the Text Area, according to UI Element Inspector. But I can't see it with my script, so I can't press any of it's Menu Items.
Am I doing something wrong?
- John R
tell application "Mail" to activate tell application "System Events" to tell process "Mail" tell window 1 tell scroll area 1 tell text area 1 tell image 1 perform action "AXShowMenu" --> Menu comes up fine. end tell delay 3 --> Just in case it's a timing thing. return menus --> None, even though UI Element Inspector sees it. end tell end tell end tell end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden