Début du message réexpédié : set theColorList to {"0-none", "1-orange", "2-red", "3-yellow", "4-blue", "5-purple", "6-green", "7-gray"} set theDefaultChoice to "0-none"
repeat while not return set theChoice to choose from list theColorList default items theDefaultChoice with title "Color" delay 0.5 end repeat
Maybe this one may help : set theColorList to {"0-none", "1-orange", "2-red", "3-yellow", "4-blue", "5-purple", "6-green", "7-gray"} set theDefaultChoice to "0-none" set theChoice to {} repeat while theChoice is {} set theChoice to choose from list theColorList default items theDefaultChoice with title "Color" end repeat
but in fact I don't understand your problem.
Given the bare script :
set theColorList to {"0-none", "1-orange", "2-red", "3-yellow", "4-blue", "5-purple", "6-green", "7-gray"} set theDefaultChoice to "0-none" -- point #1 set theChoice to choose from list theColorList default items theDefaultChoice with title "Color" -- point #2
If you press escape, you will exit silently If you wait too much, you will get an error message claiming that the waited event took too much time to apply. You will reach the point #2 only if you press return.
Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 17:12:58
|