I’m walking through applications to display all menus and submenus, and while I’m doing this, the arrow keys suddenly don’t work to move right (to the next menu item). SUT is Mac / Leopard.
I captured 2 images: menuExpandTriangle (the expansion triangle for submenus) and menu_blue (a patch of the blue highlighted menu to get me back to the top of the menu).
When I run the script below, I can’t move to the right to the next menu item (see “this fails” comment). When I run this by hand and do the exact same thing, it all works.
Any ideas??
TypeText controlKey & F2 # this gives us the Apple highlighted
TypeText rightArrow, rightArrow # Moves right to File menu
TypeText downArrow # expose sub-menu
repeat
put imageLocation(“menu_blue”) into returnToTopLoc
put everyImageLocation(“menuExpandTriangle”) into expandList
put imageLocation(“menu_blue”) into returnToTopLoc
repeat with each item in expandList
moveTo it
end repeat
moveTo returnToTopLoc # move up to top level menu
TypeText rightArrow # this fails
end repeat