Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

choose from list by number



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.