
Clicking an "open by title" link opens the first document that has that title, but there could be several with that same name (as in my example above), and you may not get the document you expect. Better to use openByFilename:
noteplan://x-callback-url/openNote?filename=XXXX
instead of:
noteplan://x-callback-url/openNote?noteTitle=YYY
Some discussion here: