Re: Whose-Filtering a Text List???
Re: Whose-Filtering a Text List???
- Subject: Re: Whose-Filtering a Text List???
- From: Jim Deacutis <email@hidden>
- Date: Wed, 10 Oct 2001 03:47:02 -0400
Pls disregard the previous mess and read this script instead.
I'm having trouble with the syntax of a "whose" filter.
What am I doing wrong??
And what does the error message mean??
!!!!!!!!!!!!!!!!! Thank you in advance !!!!!!!!!!!!!
The script segment is below:
set redoList to "OL"
set doThese to true
set doThose to true
set FileList to {} as list
--doThese, doThose can each be true or false, independently
if doThese then
set FileList to FileList & {"Chs.", "OLs."} as list
end if
if doThose then
set FileList to FileList & {"Ch.", "OL."} as list
end if
set redoListTest to character 1 in redoList
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".