Applescript Pop up button help!!

Discussion in 'Mac Programming' started by silly34, Jul 22, 2005.

  1. silly34 macrumors newbie

    Apr 30, 2005
    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"
    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!


Share This Page