UXP Toolkit
    Preparing search index...

    Options for saving a document in Photoshop (PSD) format using the Document.saveAs method

    const doc = app.activeDocument;
    const saveFile = await require('uxp').storage.localFileSystem.getFileForSaving("document.psd");
    await doc.saveAs.psd(saveFile, {
    layers: true,
    embedColorProfile: true,
    maximizeCompatibility: true
    });

    objects/saveoptions

    22.5

    interface PhotoshopSaveOptions {
        alphaChannels?: boolean;
        annotations?: boolean;
        embedColorProfile?: boolean;
        layers?: boolean;
        maximizeCompatibility?: boolean;
        spotColor?: boolean;
    }
    Index

    Properties

    alphaChannels?: boolean

    True to save the alpha channels.

    22.5

    annotations?: boolean

    True to save the annotations.

    22.5

    embedColorProfile?: boolean

    True to embed the color profiles in the document.

    22.5

    layers?: boolean

    True to preserve the layers.

    22.5

    maximizeCompatibility?: boolean

    Maximize Compatibility with older versions

    22.5

    spotColor?: boolean

    True to save the spot colors.

    22.5