Thank you Dan and Morton

I knew about chomp, but forgot (typical beginners mistake). That helped 
the script. BTW the end was there in height, but got lost in the 
posting (actually it's tacked to the end of the previous line).

I haven't tried Morton's suggestions, but sure they'll help as putting 
in the chomp brought up some other problems.

The chomp addition eliminates one "problem" as BBEdit can't handle 
chomp. (And BareBones has no  plans to add the feature.)

Thanks again.