Skip to main content
Robert at ID-Tasker
Legend
August 3, 2024
Answered

History Panel

  • August 3, 2024
  • 1 reply
  • 671 views

I'm still on 19.3 - can anyone confirm if the same info is available through scripting in 19.5?

 

This topic has been closed for replies.
Correct answer Peter Kahrel

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.

1 reply

Community Expert
August 3, 2024

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 )

Robert at ID-Tasker
Legend
August 3, 2024

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? 

 

Community Expert
August 3, 2024

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 )