Split a document using delimiters?

I ran this script about one year ago for a summary of about 500 abstracts . Just tried it with a small test file and it still works for rtf and text file - except for images in the file.

But need to change the tell statement to


tell application id "DNtp"