• 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: Philip Aker <email@hidden>
  • Date: Sun, 25 May 2008 20:12:37 -0700

On 08-05-25, at 18:29, Michelle Steiner wrote:

On May 25, 2008, at 6:20 PM, Philip Aker wrote:

set choices to {"peas", "potatoes", "pumpkins", "pumpernickels", "parsnips"}
set default_items to {"p"}
choose from list choices default items default_items with multiple selections allowed

In this case, which is the correct choice for a default item set? Parsnips, peas, or every item whose first character is "p"?

There should be no default item because there is no item named "p"

Correct.


But I think that he meant to type the letter "p" on the keyboard, so potato would be selected.

Ok. "type-select"


When I did that both potato and 5 were selected; typing "p" again selected only potato.

With the example above, typing "p" I get "parsnips" selected. With this example:

set choices to {"peas", "potatoes", "pumpkins", "pumpernickels", "parsnips"}
set default_items to {"peas"}
choose from list choices default items default_items with multiple selections allowed

"peas" is selected on entry and typing "p" extends the selection discontiguously to include "parsnips". Typing "p" after that deselects "peas".

So I think the behavior is consistent with your observations, but maybe not intuitive or even correct. Hard to say because I don't regularly come across a similar situation in other software. My normal usage in the Finder is to open a folder, type-select 1 item, and then open it closing it's container (I almost always use list-view).


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30

 _______________________________________________
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 defaults
      • From: Robert Poland <email@hidden>
    • Re: choose from list defaults
      • From: Michelle Steiner <email@hidden>
References: 
 >choose from list defaults (From: Luther Fuller <email@hidden>)
 >Re: choose from list defaults (From: Michelle Steiner <email@hidden>)
 >Re: choose from list defaults (From: Robert Poland <email@hidden>)
 >Re: choose from list defaults (From: Philip Aker <email@hidden>)
 >Re: choose from list defaults (From: Michelle Steiner <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