• 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: "Mark J. Reed" <email@hidden>
  • Date: Mon, 26 May 2008 08:54:28 -0400

On Sun, May 25, 2008 at 8:21 PM, Luther Fuller <email@hidden> wrote:
> This script works correctly ...
>
>        set choices to {"meat", "potatoes", "apple pie"}
>        set defaultItem to {item 2 of choices}
>        choose from list choices default items defaultItem
>
> However, the dictionary for 'choose from list' states ...
>
>        [default items list of text or number] : a list of items to initially
> select (an empty list if no selection)
>
> which would seem to indicate that this second line should work ...
>
>        set defaultItem to {2}

I don't see that reading at all.   A list contains items; when you say
"item 2 of list", you are identifying a particular item: the second
one.  In no way is the number  2 itself an item.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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: 
 >choose from list defaults (From: Luther Fuller <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: Re: choose from list defaults
  • Index(es):
    • Date
    • Thread