I am looking to create a Photoshop javascript that can resize and save images, while also being able to restore the document back to its original state once the processing is complete.
In Photoshop, I know I can simply go back in the History pane and undo the last actions to revert to the original state. However, how can I achieve this same functionality within a script?
Alternatively, what would be the most effective method for restoring the document to its original state?
It's important to note that the document may not have been saved originally and could still be a work in progress.