Script for posting to ecto?

If I want to send something I’ve written from DT to MarsEdit, the script is simple:

tell application "DEVONthink Pro"
	set theWindow to think window 1
	set postTitle to name of content record of theWindow
	set postBody to selected text of theWindow
end tell

tell application "MarsEdit"
	make new document
	tell document 1
		set title to postTitle
		set body to postBody
	end tell
end tell

Can anyone tell me the equivalent script for sending to ecto? It’s got to be quite similar, but I haven’t been able to figure it out.

I’ve just discovered that you probably don’t need a script. There’s a service associated with Ecto that takes selected text and builds a draft post from that text. It’s called Publish With Ecto.
If you select the text you want to post in DTP and then hit CMD + @, it’ll bring that text into Ecto as a draft post. All you have to do is title it and tag it, and off you go.