I did that right, but all involved a save dialog or an open dialog and I don't need that.