I have a document that I want to save the .ai file that is open....then save as a pdf with my own Adobe PDF Presets. The name of my preset is: Machine Views
Example sudo code:
#target illustrator var doc = app.activeDocument; // just save it as the .ai that it is doc.save(); // save .ai as .pdf with custom named preset doc.savePDF("Machine Views");