Re: SmartList
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
|
_______________________________________________
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>) |