Script: write to text file but use InDesign Filename in the output?
I have a script ready that pushes a report to the folder as a text file.
But want it to use the InDesign document name in the dialog - at the moment it shows Untitled.
It's not critical, but how do I get the filename into the output file automatically?
Any ideas?

