• 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: list of records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list of records


  • Subject: Re: list of records
  • From: Bryan <email@hidden>
  • Date: Mon, 11 Dec 2000 23:42:31 -0500
  • Organization: Apex Radiology

the problem I've encountered with '{r} is in L '
is if r is already a list, then the list is double nested
and returns the whole list as 'item 1 of...'
so that it is safer to use '(r as list) is in L'

bryan


Richard 23 wrote:

> >Hi,
> >
> >I think this was discussed before, but unfortunately the list archives are
> >currently not searchable.
> >I am trying to check if a specific record is contained by a list:
> >
> >set r to {FileType:"LINK", CreatorType:"MSIE"} -->record
> >set L to {{FileType:"LINK", CreatorType:"MSIE"}, "foo", {FileType:"PICT",
> >CreatorType:"8BIM"}} --> 3 item list
> >r is in L -->false **why not true?
> >r = item 1 of L -->true **aah!
> >
> >Any Ideas why in the 3rd line the result is false?
> >How can I do the check without looping through the list?
>
> {r} is in L -->true
>
> R23
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: list of records
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: list of records (From: Richard 23 <email@hidden>)

  • Prev by Date: Re: Apple System Profiler
  • Next by Date: Re: AS starting
  • Previous by thread: Re: list of records
  • Next by thread: Re: list of records
  • Index(es):
    • Date
    • Thread