Copy link to clipboard
Copied
I'm still on 19.3 - can anyone confirm if the same info is available through scripting in 19.5?
As far as I can see there's what we've always had: app. and document.undoHistory and .redoHistory. app.documents[0].undoHistory returns what you see in the History panel. That panel's functionality is not exposed as far as I can tell.
Copy link to clipboard
Copied
Hi @Robert at ID-Tasker ,
I'd say that even more info is available.
Why? The new History panel is only recording AFTER you saved a new unnamed document.
That's not the case with scripting…
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
Thanks but my question was - is info from the panel available as an extra collection - like myDoc.TextFrames or myStory.Tables?
Is there myDoc.History collection or something like that?
Copy link to clipboard
Copied
Hi @Robert at ID-Tasker ,
I have to check this. I'm not sure…
My guess is that a possible collection will not start at the panel.
It would be a document property; an array.
We already have something like this for years.
There is a document's redoHistory and undoHistory, both arrays of strings.
And you go through it with document redo() and document undo() step by step.
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
Hi @Robert at ID-Tasker ,
I have to check this. I'm not sure…
My guess is that a possible collection will not start at the panel.
It would be a document property; an array.
We already have something like this for years.
There is a document's redoHistory and undoHistory, both arrays of strings.
And you go through it with document redo() and document undo() step by step.
By @Laubender
Yeah, I know. I was hoping for more.
Copy link to clipboard
Copied
As far as I can see there's what we've always had: app. and document.undoHistory and .redoHistory. app.documents[0].undoHistory returns what you see in the History panel. That panel's functionality is not exposed as far as I can tell.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
@Peter Kahrel said: "That panel's functionality is not exposed as far as I can tell."
Hi Peter,
new menuActions should work with method invoke().
( As long as there is no dialog the user has to answer as a result. )
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
Well, ok, you can use invoke(), true. The last-resort solution if nothing else works.
> Could you please check if there are at least new entries for Invoke()?
The answer is 'Yes. there are.' And just in case you want to know what they are, here you are:
//Name Id
Step Backward 149253
Step Forward 149249
Clear History 149256
Delete 149254
New Document 149251