On 13 Nov 2015, at 7:09 PM, Takaaki Naganoya <
email@hidden> wrote:
Can we use “distinctUnionOfArrays” with NSArray ?
It seems can’t do it...
set bArray to aDict's valueForKeyPath:"players.distinctUnionOfArrays.aLabel"
--> (NSArray) {missing value, missing value, missing value}
I can never remember these operators. You have two problems there. First, distinctUnionOfArrays works with arrays of arrays, whereas you have just an array of objects. So you need distinctUnionOfObjects. Second, the operators need to be preceded by"@". So:
set bArray to aDict's valueForKeyPath:"email@hiddenl"
--> (NSArray) {1,2}
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