Control list

We are wanting to use the List component so that we can select multiple values. How can we populate the List (we have that part down) and obtain the list of numbers that was selected in the List, using the getSelectedValues() scripting function?
Thanks.

Travis had a pretty neat solution for doing same thing on a table.

In your instance of a list, it would work a bit differently. The dynamic property you create would be bound to an expression like:

runScript("system.gui.getWindow('WindowName).getComponentForPath('Root Container.List').getSelectedValues()", 250)