• 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: Shane Stanley <email@hidden>
  • Date: Fri, 27 Apr 2012 12:03:22 +1000

On 27/04/2012, at 2:46 AM, Axel Luttgens wrote:

Filter reference forms (aka whose clauses) can't be applied to AppleScript objects (lists, records or texts). On the other hand, applications *may* implement such reference forms

Indeed:

set myList to {"blah", "Safari", "not Safari", "something else", "yet more"}
tell application "ASObjC Runner" -- ASObjC Runner.app
refine list myList using predicates "self contains 'Safari'"
--> {"Safari", "not Safari"}
end tell

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <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

  • Follow-Ups:
    • Re: Am I missing something here? I thought there was an elegant way to do this.
      • From: Alex Zavatone <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: Axel Luttgens <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