Re: list of records
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