var savefile=new File("~/Desktop/exp.png"); var exportOptions = new ExportOptionsPNG24(); exportOptions.antiAliasing = false; app.activeDocument.exportFile(savefile, ExportType.PNG24, exportOptions);