myDocument.saveAs( saveIn, [ options ], [ asCopy ], [ extensionType ] ) in Photoshop DOM

save the document with specific save options

Arguments

nametypedescription
saveIn File
options Object [optional] (see below)
asCopy Boolean [optional]
extensionType Extension [optional]
Return Type
(none)

Description

The options parameter must be an instance of one of the following objects: BMPSaveOptions, DCS1_SaveOptions, DCS2_SaveOptions, EPSSaveOptions, GIFSaveOptions, JPEGSaveOptions, PDFSaveOptions, PhotoshopSaveOptions, PICTFileSaveOptions, PICTResourceSaveOptions, PixarSaveOptions, PNGSaveOptions, RawSaveOptions, SaveOptions, SGIRGBSaveOptions, TargaSaveOptions, TiffSaveOptions.