• 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: Alex Zavatone <email@hidden>
  • Date: Thu, 26 Apr 2012 13:01:06 -0400

Ahhh, yeah, silly me.  I know that's something I always wish were true, but really bites me every time I come back to AS.

I wonder if it's possible to coerce the items into a virtual reference form so that you can filter??

Thanks.

On Apr 26, 2012, at 12:46 PM, Axel Luttgens wrote:

> Le 26 avr. 2012 à 16:49, Alex Zavatone a écrit :
>
>> 	set myRecord to every item of myList whose ( text contains "Safari")
>
> Hello Alex,
>
> 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, to be applied against their own objects, as in:
>
> 	tell application "Finder"
> 		files of desktop whose name contains ".pdf"
> 	end tell
>
> More details at:
>
> 	https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_reference_forms.html#//apple_ref/doc/uid/TP40000983-CH4g-BAJJHEFE
>
> HTH,
> Axel
>
>
> _______________________________________________
> 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


 _______________________________________________
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: 
 >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