I’m new to Photoshop JSX scripting. Until now I did script a little “hello world” that saves a jpg image of the first history snapshot.
What I want is to know the number of history snapshots present in the active image but I can’t find any good info or example.
2
Answers
Here is the solution (Thanks to c.pfaffenbichler):
Nice. Isn't it?
You need to iterate through
Document.HistoryStates
and test the boolean calledsnapshot
for each one – it istrue
if the state is a snapshot.