Hi Graydon,
Configurable "dump the output to a file" (rather than using file:write in the query) would be nice, too; development is not always at a place where file:write is straightforward.
One existing solution is to press the "Save" button in the Text View once the query has been evaluated. If the result is small enough, the text will be saved as is. Otherwise, the query will be re-evaluated, and the result ends up in the specified file.
Hope this helps, Christian