How do I make Apple Script open Script Editor and write a new script?
This works for me:

tell application "Script Editor"
    make new document with properties {name:"this is a test", contents:"and 
more text"}
end tell