• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
choose from list by number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: choose from list by number
      • From: Shane Stanley <email@hidden>
  • Prev by Date: [ANN] Smile 3.1 available: 3 major new features.
  • Next by Date: Re: AppleScript release notes
  • Previous by thread: [ANN] Smile 3.1 available: 3 major new features.
  • Next by thread: Re: choose from list by number
  • Index(es):
    • Date
    • Thread