Cannot specify file type:app.activeDocument.save

I’d try doing it with BatchPlay