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

Re: Getting record items of a sublist


  • Subject: Re: Getting record items of a sublist
  • From: Wayne Melrose <email@hidden>
  • Date: Mon, 31 Oct 2011 17:21:48 +0100
  • Sun-java-system-smtp-warning: Lines longer than SMTP allows found and wrapped.



On 31. okt. 2011, at 15:40, Zack Jarrett <email@hidden> wrote:

Looping through the list may feel inelegant but it must be done in order to get what you want.  The only problem with doing it in pure AppleScript is speed.  You may find that with a large list (like thousands or tens of thousands of elements) your script becomes obtrusively slow.

On Oct 29, 2011, at 12:14 PM, wayne melrose wrote:

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



The updates since I posted this showed that there are alternatives, however looping and properly calling on the record using 'my' before the variable showed that it actually isn't that slow. Granted, tens of thousands would probably still be pretty slow however I didn't realise what impact 'my' had until this discussion. (I knew it had a place, I just didn't realise it's scope)
 _______________________________________________
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: Alex Zavatone <email@hidden>
References: 
 >RE: Re: (no subject)That (From: email@hidden)
 >Re: (no subject)Thatinteract with alerts (From: Dana Hill <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: Shane Stanley <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: Alex Zavatone <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: Shane Stanley <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: Alex Zavatone <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: Shane Stanley <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: Alex Zavatone <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: Shane Stanley <email@hidden>)
 >Re: (no subject)Thatinteract with alerts (From: email@hidden)
 >Get length of audio/video files (From: Bob Majors <email@hidden>)
 >Re: Get length of audio/video files (From: Christopher Stone <email@hidden>)
 >Re: Get length of audio/video files (From: Shane Stanley <email@hidden>)
 >Re: Get length of audio/video files (From: Christopher Stone <email@hidden>)
 >Re: Get length of audio/video files (From: Shane Stanley <email@hidden>)
 >Re: Get length of audio/video files (From: Emmanuel LEVY <email@hidden>)
 >Getting record items of a sublist (From: Ronald Hofmann <email@hidden>)
 >Re: Getting record items of a sublist (From: Zack Jarrett <email@hidden>)

  • Prev by Date: Re: launchd user agent applescript do shell script error
  • Next by Date: Re: Getting record items of a sublist
  • Previous by thread: Re: Getting record items of a sublist
  • Next by thread: Re: Getting record items of a sublist
  • Index(es):
    • Date
    • Thread