• 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: Michelle Steiner <email@hidden>
  • Date: Thu, 3 Jan 2008 10:19:35 -0700


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

-- Michelle

-- 
Reading computer manuals without the hardware is as frustrating as reading sex manuals without the software.
-- Clarke's sixth law

 _______________________________________________
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

  • Follow-Ups:
    • Re: choose from list - question
      • From: Kurt Klamp <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>)

  • Prev by Date: Re: choose from list - question
  • Next by Date: Re: Dates
  • Previous by thread: Re: choose from list - question
  • Next by thread: Re: choose from list - question
  • Index(es):
    • Date
    • Thread