And also to set the filename in the inputbox that follows. Essentially I am trying to print to a file without the need for user intervention.

If anyone know then it would be a great help !!!