AppleScript: Choose from list AND custom buttons?
I want to create a script which will have the user choose from different options in a list. I want there to be two buttons, Play and Select. Play will play a sound based on the user's selection, select will assign the option to a variable and dismiss the pop-up.
I have tried: choose from list {"Option 1", "Option 2", "Option 3"} with prompt "Please select which sound you like best" buttons {"Select", "Play"} default button 2
However, it seems that I cannot use the "buttons" parameter with a list. Is there any other way to do what I want?
MacBook Pro with Retina display-OTHER, OS X Mavericks (10.9.5), 15 in, Late 2013, 256GB, 8GB RAM