var
savefile=
new
File(
"~/Desktop/exp.fxg"
);
exportOptions =
FXGSaveOptions();
exportOptions.saveMultipleArtboards =
true
;
app.activeDocument.saveAs(savefile, exportOptions);