OK, I was just making sure I hadn’t missed something before offering a possible AppleScript solution to your request above.
The script below should allow you to either append or insert text into the currently selected note. The main window doesn’t need to be in focus or visible to the user, but it does need to be open (even if it’s just left at the back, underneath other windows from other applications). As such, the script will attempt to open it if it isn’t already, but it won’t take the focus away from whatever you’re currently doing.
use application id "com.apple.systemevents"
use scripting additions
property append : true -- false = insert text at cursor position
property process : a reference to application process "nvALT"
property window : a reference to window "nvALT" of my process
property table : a reference to table 1 of scroll area 1 of my window
property item : a reference to (row 1 in my table whose selected = true)
property text area : a reference to text area 1 of scroll area 2 of my window
if not (my process exists) then return 0
if not (my window exists) then tell ¬
application id "net.elasticthreads.nv" to ¬
tell window "nvALT" to set visible to true
set input to the clipboard as text
tell my text area
if append then
if value of its attribute "AXNumberOfCharacters" > 0 ¬
then set input to linefeed & linefeed & input
set its value to its value & input
set the value of its attribute "AXSelectedText" to input
The property called
append (currently set to
true at the top of the script) is one that you can change to your preference. If it is set to
true, then the clipboard’s contents gets added to the end of the currently selected note as a new paragraph, separated from the text above with a blank line in between. If it is set to
false, then the clipboard’s contents is inserted into the currently selected note at the cursor’s present position without adding any additional whitespace.
Hopefully, this will be of some help until the release of nvUltra arrives.