Re: Am I missing something here? I thought there was an elegant way to do this.
Re: Am I missing something here? I thought there was an elegant way to do this.
- Subject: Re: Am I missing something here? I thought there was an elegant way to do this.
- From: Christopher Stone <email@hidden>
- Date: Thu, 26 Apr 2012 23:56:54 -0500
On Apr 26, 2012, at 23:31, Shane Stanley wrote: Abstruse? A virtual one-liner? I hope you use a different dictionary to me ;-)
______________________________________________________________________
Hey Shane,
Yes, abstruse. But I did say it was neat. :) set pred1 to "self < 12"
set pred2 to {"%K in %@", {"self", {4, 5, 6}}}
tell application "ASObjC Runner"
refine list {2, 4, 6, 8, 10, 12, 14} using predicates {pred1, pred2}
--> {4, 6}
end tell For details, seehttps://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Predicates/Articles/pSyntax.html You've had your head around that syntax for a while, but it's not exactly straightforward.
-- Take Care, Chris
|
_______________________________________________
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