Programmatically open an editor, capture the result.
