UXP Toolkit
    Preparing search index...

    Represents a single history state in the History panel.

    // Access current history state
    const doc = app.activeDocument;
    const currentState = doc.activeHistoryState;
    console.log(`Current state: ${currentState.name}`);
    // List all history states
    const doc = app.activeDocument;
    doc.historyStates.forEach((state, index) => {
    console.log(`${index}: ${state.name} (snapshot: ${state.snapshot})`);
    });

    22.5

    Index

    Accessors