• 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 - question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: choose from list - question


  • Subject: Re: choose from list - question
  • From: Kurt Klamp <email@hidden>
  • Date: Thu, 3 Jan 2008 20:00:07 +0100


Am 03.01.2008 um 18:19 schrieb Michelle Steiner:


On Jan 3, 2008, at 10:07 AM, Kurt Klamp wrote:

Maybe something like this. I only changed 'default items {2}' into 'default items {item 2 of theList}' and it works for me.

You are right, this is a possible workaround/alternative, but the standard addition dictionary says:

No, it is not a workaround; it is the way to do it.

So if i'm right, the dictionary tells me that i can preselect some items by number(index in list) or by content.

You're not right; the dictionary tells you that you can preselect some items by content; the content can be a number or a string.


Try this:

set theList to {1, "A", 2, "B", 3, "C"}
choose from list theList default items {2, "C"} with multiple selections allowed



Thanks for clarification,

Kurt
_______________________________________________
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 - question (From: Kurt Klamp <email@hidden>)
 >Re: choose from list - question (From: Bastiaan Boertien <email@hidden>)
 >Re: choose from list - question (From: Kurt Klamp <email@hidden>)
 >Re: choose from list - question (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 5, Issue 5
  • Next by Date: Re: Dates in General
  • Previous by thread: Re: choose from list - question
  • Next by thread: Re: choose from list - question
  • Index(es):
    • Date
    • Thread