This is an AppleScript for modifying the pages in all open documents.