• 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: Am I missing something here? I thought there was an elegant way to do this.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Am I missing something here? I thought there was an elegant way to do this.
      • From: Shane Stanley <email@hidden>
References: 
 >Safari Tab Pick-List (From: Christopher Stone <email@hidden>)
 >Re: Safari Tab Pick-List (From: Alex Zavatone <email@hidden>)
 >Re: Safari Tab Pick-List (From: Christopher Stone <email@hidden>)
 >Re: Safari Tab Pick-List (From: Alex Zavatone <email@hidden>)
 >Re: Safari Tab Pick-List (From: Christopher Stone <email@hidden>)
 >Am I missing something here? I thought there was an elegant way to do this. (From: Alex Zavatone <email@hidden>)
 >Re: Am I missing something here? I thought there was an elegant way to do this. (From: Christopher Stone <email@hidden>)
 >Re: Am I missing something here? I thought there was an elegant way to do this. (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Am I missing something here? I thought there was an elegant way to do this.
  • Next by Date: Re: Am I missing something here? I thought there was an elegant way to do this.
  • Previous by thread: Re: Am I missing something here? I thought there was an elegant way to do this.
  • Next by thread: Re: Am I missing something here? I thought there was an elegant way to do this.
  • Index(es):
    • Date
    • Thread