var savefile=new File("~/Desktop/exp.tiff"); var exportOptions = new ExportOptionsTIFF(); exportOptions.resolution = 300; app.activeDocument.exportFile(savefile, ExportType.TIFF, exportOptions);