Script to create new OO document from focused row?

Has anyone had any success doing this?