var savefile = new File("~/Desktop/sample.tiff"); var tiffOpt = new TiffSaveOptions(); // TIFF形式オプション tiffOpt.layers = true; // レイヤーを保存 activeDocument.saveAs(savefile, tiffOpt, true, Extension.LOWERCASE);