@cfriend Thank you for your solution. I am afraid that this may not work correctly on longer documents with tables and images. I would like to avoid any copying and pasting
I am more concerned about these attributes (note that they are different from doc to doc):
Hence the question about AppleScript solutions.