I’m looking to save the metadata of all text layers and link the metadata with the document, so users may load previous versions of all text layers (e.g. switch between different languages). Now that I’ve realized that the id from
app.activeDocument._id changes every time a file is opened, I’d like to know if there’s a unique and consistent id for each document. If the answer is no, I’ll have to use document title as the key, which could be quite messy since the name may change.