Thanks, Carlos. The new version gives the same result, but I figured out the cause of the problem with a little debugging of the en_paste script.
The local ID of the note is "p116". This line of the script
set _Notes to get every note of every notebook where its local id contains sLocId
returns notes p1161, p1165, p116, and p1163. And then the script pastes the text of the first one.
Changing that line to this
set _Notes to get every note of every notebook where its local id ends with ("/" & sLocId)
makes it work!
Mark