Hello im updating my old legacy script to new UXP Photoshop panel script.
i need to know how to set the active history state back to when you first opened the psd file… here is a code snippet that use to work
activeDocument = app.documents[p]; var savedState = activeDocument.activeHistoryState activeDocument.activeHistoryState = activeDocument.historyStates[0];