• 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: Bastiaan Boertien <email@hidden>
  • Date: Thu, 3 Jan 2008 17:42:42 +0100

Hi Kurt,

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

email@hidden


set theList to {}
set i to 2
repeat 5 times
set end of theList to (short date string of ((current date) + i * days))
set i to i + 5
end repeat


set theresult to choose from list theList with title "Select" with prompt "Please choose at least one item!" default items {item 2 of theList}

greets bas



Op 3-jan-2008, om 17:35 heeft Kurt Klamp het volgende geschreven:

Anyone can confirm ?

set theList to {}
set i to 2
repeat 5 times
set end of theList to (short date string of ((current date) + i * days))
set i to i + 5
end repeat


set theresult to choose from list theList with title "Select" with prompt "Please choose at least one item!" default items {2}



the 'default items' part of the 'choose from list' command seems to work not reliable.

in 9 of 10 cases the given default items aren't selected.

OS 10.4.11

TIA,

Kurt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
Archives: http://lists.apple.com/archives/applescript-users


This email sent to 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
  • Follow-Ups:
    • Re: choose from list - question
      • From: Kurt Klamp <email@hidden>
References: 
 >choose from list - question (From: Kurt Klamp <email@hidden>)

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