Is there any way you can take the output window and and save its contents to a file (or create one on the fly) AUTOMATICALLY.

I know you can manually SAVE TO FILE, but is there an internal method of doing this?