var savefile=new File("~/Desktop/exp.psd"); var exportOptions = new ExportOptionsPhotoshop(); exportOptions.embedICCProfile = true; app.activeDocument.exportFile(savefile, ExportType.PHOTOSHOP, exportOptions);