Re: Whose-Filtering a Text List???
Re: Whose-Filtering a Text List???
- Subject: Re: Whose-Filtering a Text List???
- From: Allen Watson <email@hidden>
- Date: Wed, 10 Oct 2001 10:08:26 -0700
On Wed, 10 Oct 2001 03:28:27 -0700 Chris Page <email@hidden>
wrote:
>
nigh on 2001.10.10 12:47 AM, Jim Deacutis at email@hidden wrote:
>
>
> set reducedFileList to (every item in FileList whose first character is
>
> not redoListTest) as list
>
> --the result here is an error message like so:
>
> --> Can't get {"Chs.", "OLs.", "Ch.", "OL."} whose character 1 * "O".
>
>
If I'm reading this correctly, the problem is that you can't use "whose"
>
with lists. Pity.
>
Right; you have to examine the items one at a time in a repeat loop, e.g.,
set reducedFileList to {}
repeat with anItem in FileList
If first character of anItem is not redoListTest then copy anItem to end of
reducedFileList
end repeat