I've been going through the JavaScript reference and found:
but I'm new to this and am unsure how to implement it.OutputModule file attribute
app.project.renderQueue.item(index).outputModules[index].file
Description
The ExtendScript File object for the file this output module is set to render.
Any help would be greatly appreciated.
Cheers