I'm new to JXA and I'm trying to learn how to do some very basic things in TextEdit. I know how to get the paragraphs of a document as an array:
app = Application('TextEdit')
docPars = app.documents[0].paragraphs()
And then, say, sort it. But I can't figure out how to send it back to TextEdit as an array (i.e. multiple paragraphs in a TE document).
TIA