• 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
Re: choose from list defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: choose from list defaults


  • Subject: Re: choose from list defaults
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 26 May 2008 13:52:33 +0200


Le 26 mai 2008 à 13:17, Nigel Garvey a écrit :

Robert Poland wrote on Sun, 25 May 2008 21:21:34 -0600:

Hoe about this for an example;

set choices to {"1-peas", "2-potatoes", "3-pumpkins", "4-
pumpernickels", "5-parsnips"}
set default_items to {"1-peas"}
choose from list choices default items default_items with multiple
selections allowed

Run it and select any number other than 1. Is this not a BUG?

Presumably you mean "type" any number.

From the AS release notes for Tiger: "The choose from list dialog now
allows a text item to be selected by typing the first few characters of
its name."


So yes, if it's not working in Leopard, it's probably a bug. However,
since it's only ever worked in Tiger, it may not be the end of the world. ;)

As a French native, I'm not sure that I understand well you late words. Where you telling that the code was not working under Tiger ?

I ran the given script in Tiger

It starts with "1-peas" as the default item.
If I type 3 it selects "3-pumpkins"
If after that I press 5 it select "5-parsnips"
If after that I press 2 it select "2-potatoes"

Isn't it what it is supposed to do ?

So, from my experience, the code was OK in Tiger but was broken in Leopard.

Yvan KOENIG (from FRANCE lundi 26 mai 2008 13:52:27) _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: choose from list defaults (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: choose from list defaults
  • Next by Date: Re: choose from list defaults
  • Previous by thread: Re: choose from list defaults
  • Next by thread: change desktop wallpaper
  • Index(es):
    • Date
    • Thread