Tuesday, July 17, 2018
  • Index
  •  » Code Exchange
  •  » AppleScript Studio - Setting a popup button's title or currently-selected menu item

#1 2003-04-30 03:37:51 pm

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

AppleScript Studio - Setting a popup button's title or currently-selected menu item

Syntax example of how to set a popup button's currently selected item and/or title.

* NOTE: This action is independent of the menu items themselves. So, if your desired title needs to be a member of the current menu item list, use the second example.

OS version: OS X

Applescript:

set title of popup button "my_popup_button" of window "my_window" to "foobar"

set current menu item of popup button "my_popup_button" of window "my_window" to "foobar"


One mans trash is another mans treasure

Offline

 
  • Index
  •  » Code Exchange
  •  » AppleScript Studio - Setting a popup button's title or currently-selected menu item

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)