• 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
Fwd: Getting record items of a sublist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Getting record items of a sublist


  • Subject: Fwd: Getting record items of a sublist
  • From: Ronald Hofmann <email@hidden>
  • Date: Sat, 29 Oct 2011 21:22:15 +0200

yes, my list can become pretty big and I think that something like
myname of theNameList would be faster than a loop.

Ronald
---

Am 29.10.2011 um 21:14 schrieb wayne melrose <email@hidden>:


On Oct 29, 2011, at 9:05 PM, Ronald Hofmann wrote:

no, that will not do.

I should be 
myname of item n of the theNameList 

in a loop. I dont think it will work without that.

Ronald


But is there any real problem in looping through each one to build your new list of names? 

(It would be nice to be able to just ask for each of them) But I don't know of another way to do it. 


property theNameList : {}

set theNameList to {¬
{myname:"Titzi", height:170, weight:55}, ¬
{myname:"Stephen", height:184.5, weight:75}, ¬
{myname:"Elke", height:174.5, weight:50}, ¬
{myname:"Silke", height:175, weight:60} ¬
}

set theChooseList to {}

repeat with currentPerson in theNameList
set end of theChooseList to myname of currentPerson
end repeat

choose from list theChooseList
 _______________________________________________
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: Getting record items of a sublist
      • From: Shane Stanley <email@hidden>
    • Re: Getting record items of a sublist
      • From: Alex Zavatone <email@hidden>
    • Re: Getting record items of a sublist
      • From: wayne melrose <email@hidden>
  • Prev by Date: Re: Getting record items of a sublist
  • Next by Date: Re: Getting record items of a sublist
  • Previous by thread: Re: Help with AppleScripting iCal and Lion
  • Next by thread: Re: Getting record items of a sublist
  • Index(es):
    • Date
    • Thread