Using PatternCount, I know how many files are in the list. I therefore have $nNumberOfFiles.
ValueCount can do that for you.
GetValue ( $cMyListOfFiles ; $LoopCounter )
Can be used to extract a different file name from the list with each pass through your loop. (Increment $LoopCounter each time.)
Thank you for the GetValue suggestion - works perfectly!
PatternCount was working for me because I knew that every line began with "filemac". However, you suggestion is more flexible, as it will not matter if I'm running on a Mac or PC.
Thank you again.