Just a quick question. Is it possible to script InDesign server to export a .pdf to a certain folder location AND save the original .indd file to another folder location all automatically?
Sure. I suppose the typical way to tell it where to put the files would be to pass the paths as parameters to the script and retrieve them with app.scriptArgs.get(). See the SDK for more info.
Retrieving data ...