Wanted to find a way to get this script, but after I Google'd this, it seems that it's not so easy to find. Can anyone help me with this? I need a script that makes a folder with job name and in the folder creates
InDesign CS3 JS API exposes Document object method:
bool packageForPrint (to: File, copyingFonts: bool, copyingLinkedGraphics: bool, copyingProfiles: bool, updatingGraphics: bool, includingHiddenLayers: bool, ignorePreflightErrors: bool, creatingReport: bool [, versionComments: string] [, forceSave: bool=false])
This is programatically equivalent to the Package action. The same object also has method
void exportFile (format: varies, to: File [, showingOptions: bool=false] [, using: PDFExportPreset] [, versionComments: string] [, forceSave: bool=false])
which can be used to produce PDF, INX and other supported files types.
You'll find more information at http://jongware.mit.edu/indesigncs3jshelp/pc_Document.html and in appropriate InDesign Scripting Guide.