The macro discussed here does read specific lines.
You can choose the JXA or the AppleScript solution.
For more information, see the wiki Searching the Forum for Answers section.