var opt=new IllustratorSaveOptions(); opt.fontSubsetThreshold=50.5; var savefile=new File("~/Desktop/myImageData.ai"); app.activeDocument.saveAs(savefile, opt);