Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

silly34

macrumors newbie
Original poster
Apr 30, 2005
9
0
I am trying to access a pop up button menu but am having difficulty. I am trying to install a program on multiple computers and when the installer opens the default pop up button item is Upgrade and I need it to be Install and then for it to click ok to start the install.

My Script:

tell application "PG (OS X) Mac Installer"
activate
tell application "System Events"
tell application process "PowerGrade Installer"
select menu item "Install 4.6.0" of menu of pop up button

end tell
end tell
end tell

I can run it and I get the error "Can't get menu of pop up button."

I used UI Element and the order top down is pop up button, menu, menu item

I am a newbie but want to learn, any suggestions are appreciated!

B.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.