Use text in first line as file name for preview tempfile.