Hello
I am also interested in scripting, but in order to process files from a source folder, as I process daily an average of 30 files (from 2 pages to over 100 pages):
get a list of all files
with every file from list
open filename
collect filename as a package in folder named filename
open filename from folder named filename
set pdf security to true // allow only hi-res print.
export file as pdf with preset1
change color1 to color2
export file as pdf with preset2
change color2 to color1
save file & close.
Now I am using an AppleScript for indesign that does all of the above. If Interested I can share the code.
Thanks,
Dan