• 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
Getting popup menu item with System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting popup menu item with System Events


  • Subject: Getting popup menu item with System Events
  • From: Ralf Funke <email@hidden>
  • Date: Mon, 7 Feb 2005 13:54:53 +0100

<x-tad-bigger>I am trying to use System Events to automate switching between sites
in Safari.
There is a popup menu that I have to access. I managed to get this far:

tell application "System Events"
tell process "Safari"
click pop up button 1 of group 3 of UI element 2 of UI element 1 of
scroll area 1 of group 2 of window "xyz"
   delay 3
   keystroke (ASCII character 31)--the problem           
end tell
end tell

Since I could not find a way to get the elements of the popup menu directly I thought of just
using the arrow key to move down. And here is the problem. I cannot
find a way to simulate the key down. Tried keystroke down but this
also does not work. (I had a frustrating problem before when I could
not use keystroke to type numbers and had to use key code instead. But
I found the solution only by trial and error.) Is there a
documentation that helps? Anyone any idea?

Thank you.
Ralf

</x-tad-bigger>
 _______________________________________________
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: Getting popup menu item with System Events
      • From: yvan-koenig <email@hidden>
  • Prev by Date: Hiding/Launching Applications Question
  • Next by Date: Re: Date Sort
  • Previous by thread: Re: Hiding/Launching Applications Question
  • Next by thread: Re: Getting popup menu item with System Events
  • Index(es):
    • Date
    • Thread