• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Contextual Menu items using System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Contextual Menu items using System Events
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Problem Minimizing an AppleScript Studio Application
  • Next by Date: Three InDesign scripting questions
  • Previous by thread: Re: Problem Minimizing an AppleScript Studio Application
  • Next by thread: Re: Contextual Menu items using System Events
  • Index(es):
    • Date
    • Thread