The example script [here](https://ai-scripting.docsforadobe.dev/scriptingJavascript/yourFirstScript/) creates text that is off the page and (on my system) off the screen, so at first it appears not to work. The coordinates are (200, 200); but to put them on the page, the Y coordinate should be negative. Screen shot attached. 