Hey guys i have a drop down box with 5 options, and besides it there is a play button
now the only trouble im having is reading the current selection of the drop down box, any ideas on how to
Hey guys i have a drop down box with 5 options, and besides it there is a play button
now the only trouble im having is reading the current selection of the drop down box, any ideas on how to
Hi
What is exactly the class of the object, the “combo box” or “popup button” ?
If it is a “combo box”, you can get the current selection like this:
set theCurrentItem to current item of combo box "combo" of window "main"
You can also get the current value in the text field of the “combo box”:
set theComboContents to contents of combo box "combo" of window "main"
It it is a “popup button”, you can get the current selection like this:
set theCurrentItem to current menu item of popup button "popup" of window "main"
You can alos get the index of current selection:
set theCurrentIndex to contents of popup button "popup" of window "main"
And you can get the value of current selection:
set theCurrentValue to title of popup button "popup" of window "main"
For more informations:
ok well i tried this
set theComboContents to contents of combo box "sounds" of window "settings"
display dialog theComboContents
but it keeps giving me this error
Hi
Ok, are you sure that the class of the object is really “combo box”?
Are you sure of the name and the path of the object?
i found the problem, i wasnt aware that the use of tabs added a few extra commands