How to write character strings directly on TextEdit

Hi,
Is it possible to write character strings directly on TextEdit (without going through a file first)?
thanks

It’s possible using AppleScript but I don’t think we can do that directly from a Xojo application.

See How passing a variable from Shell to AppleScript? for an example how to use AppleScript from Xojo.