Apple Script
NotePlan supports a few Apple Script commands. Here is the list and feel free to request more:
With selectedNoteUrl
get the x-callback URL to the currently opened note.
tell application "NotePlan 3" set x to selectedNoteUrl return x end tell
With selectedNoteTitle
get the title of the currently opened note.
tell application "NotePlan 3" set x to selectedNoteTitle return x end tell
Add a new note with addNote with title ... and content ...
.
tell application "NotePlan 3" addNote with title "Hello World" and content "My Content" end tell