Set $Text to rich text and get rich text from $Text into a script.
And not have $Text “disturbed” by addition of a text link (per above) so that links can’t be extracted.
I suspect it is complicated, per @eastgate :
Not actually an RTF writing space. But the internal format happens to be stored as RTFD
But it would be nice. Especially the ability to add text links in a note without the existing links “disappearing” from the built-in export to RTF.