Thank you, Michael... A sneaky bit of latteral thinking there which will certainly accomplish the required result!
But is there no Bourne expression for AND, OR and NOT in a filter command? The Help entry is a bit rudementary on the subject.
/H
Okay, so one day I'll track down a list of Bourne Shell options as mentioned in the Help entry on Filters, but just for now...
[1] Using AND
How do we filter to extract both *.gif AND *.jpg from a list of file names?
[2] Using NOT
And how do we do the reverse, such as 'All files except *.txt' ?
-- For simulating a logical AND --
on mouseUp
put fld aFld into filesList
replace .jpg with .jpg! in filesList
replace .gif with .gif! in filesList
filter filesList with *!*
replace ! with empty in filesList
put filesList into fld bFld
end mouseUp
--- [EMAIL PROTECTED] wrote:
-- not using Filter, but does the same thing --
on mouseUp
put fld aFld into filesList
repeat for each line kLine in filesList
if .txt is not in kLine then
put returnkLine after kHolder
end if
end repeat
put kHolder into fld bFld
end mouseUp
--- [EMAIL PROTECTED] wrote:
-- The NOT filter
on mouseUp
put fld aFld into filesList
replace .txt with !txt in filesList
filter filesList with *.*
replace ! with . in filesList
put filesList into fld bFld
end mouseUp
--- [EMAIL PROTECTED] wrote:
Okay, so one day I'll track down a list of Bourne
Shell options