UXP Toolkit
    Preparing search index...

    Contains Photoshop preferences grouped into several categories similar to preferences in user interface.

    // Access general preferences
    const prefs = app.preferences;
    console.log(`Auto-update documents: ${prefs.general.autoUpdateOpenDocuments}`);
    prefs.general.exportClipboard = true;
    // Configure interface preferences
    const prefs = app.preferences;
    prefs.interface.showTransformControls = true;
    prefs.interface.enableNarrowOptionBar = false;
    // Set units and rulers
    const prefs = app.preferences;
    prefs.unitsAndRulers.rulerUnits = constants.Units.PIXELS;
    prefs.unitsAndRulers.typeUnits = constants.TypeUnits.POINTS;

    24.0

    Index

    Accessors

    • get notifications(): PreferencesNotifications

      Notifications preferences. Note: Some notifications preferences will be locked when Quiet Mode is enabled. Attempts to modify locked preferences will throw errors while Quiet Mode is active.

      Returns PreferencesNotifications

      26.11