choose from list by number
choose from list by number
- Subject: choose from list by number
- From: Robert Poland <email@hidden>
- Date: Sat, 3 Jun 2006 15:38:52 -0600
Hi,
In the following snippet, with Tiger I can select
the color choice by typing a number. But with
Panther, typing a number does nothing.
Is this a Tiger thing or a sneaky bug?
Tia,
set colorchoice to 1 -- no selection, default to "none"
set theColorList to {"1-none", "2-orange",
"3-red", "4-yellow", "5-blue", "6-purple",
"7-green", "8-gray"}
set theDefaultList to text item colorchoice of theColorList
set theChoice to (choose from list theColorList
default items theDefaultList with prompt "Option
key to select entire folder." given «class
appr»:"Color Selection")
if (theChoice is false) then return -- "User canceled."
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden