Getting popup menu item with System Events
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