Running a script on multiple indesign files
I need to run the same script on a directory of indesign files, then call a menu item from a custom plugin in indesign cs4 which exports the document as a customised xml file using the plugin and saves each on to a directory.
Should i just be trying to write a javascript that gets run by the user in the scripts folder in indesign, or should i be trying to write an external application that drives indesign, runs the script on each file and exports each file to an xml file?? if i should writing an external applicaion. what language/technologies should i be using?
i'm new to this an am unsure of what technologies i should be using to automate indesign tasks on multiple indesign files at once.