Way to detect if an Indesign Document has unsaved changes
I have an InDesign document that I have saved. After saving the document, I make some changes to it. Now I want to detect if there are any unsaved changes in the document through JSX. I have tried to use the property document.saved, but this method only tells me if the document was saved for the first time.
If have some unsaved changes in a document that has been previously saved, document.saved still returns true.
Is there any other way to detect unsaved changes for a document?