Funny, I just tried the same. I also found no way to get it work. What I tried:
outputto "filename"
outputto "_filename"
outputto "FILENAME"
outputto "_FILENAME"
all do not work.
But you can help yourself with an action group:
Include something like:
outputto "dummy filename"
in your script. After running your script, run an action group with to actions:
1st:
Format Tag Field:
Field: _FILENAME
String: %dummy filename%
I still require the ability to access the filename type variables within a web sources
script, please any chance this could be added in, this time I want to load up
a local XML file to extract tag data from rather than collect from a true web source