• 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: SmartList
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SmartList


  • Subject: Re: SmartList
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 19 Dec 2013 22:41:16 +1100

On 19 Dec 2013, at 3:35 PM, Shane Stanley <email@hidden> wrote:

This is an ASObjC-based library for a SmartList object

And these are some other handlers that should be in there after valueForKey:

on valueForKeyPath:aString -- calls valueForKey: on every item in array, one key after the other (keys separated by ".")
return (arrayStore's valueForKeyPath:aString) as list
end valueForKeyPath:


on sumAndAverage() -- return {sum, average} if list is numbers
return {(arrayStore's valueForKeyPath:"@sum.self") as real, (arrayStore's valueForKeyPath:"@avg.self") as real}
end sumAndAverage


on maxAndMin() -- return {max, min} 
return {(arrayStore's valueForKeyPath:"@max.self") as real, (arrayStore's valueForKeyPath:"@min.self") as real}
end maxAndMin

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >SmartList (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Changes in 10.8
  • Next by Date: Re: SmartList
  • Previous by thread: SmartList
  • Next by thread: Re: SmartList
  • Index(es):
    • Date
    • Thread