Reading the text file is fairly straightforwrd, so I won’t go into that here. But @_jims wrote a fantastic macro to open and Float Specified Apple Notes that I have been using daily for a year and a half, and that might put you on the right track for opening a specific note. Check it out and see if it is useful.
-Chris