• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

History Panel

Community Expert ,
Aug 03, 2024 Aug 03, 2024

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?

 

TOPICS
Scripting

Views

212

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 03, 2024 Aug 03, 2024

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.

Votes

Translate

Translate
Community Expert ,
Aug 03, 2024 Aug 03, 2024

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 )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2024 Aug 03, 2024

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? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2024 Aug 03, 2024

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 )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2024 Aug 03, 2024

Copy link to clipboard

Copied

quote

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. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2024 Aug 03, 2024

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2024 Aug 03, 2024

Copy link to clipboard

Copied

Thanks @Peter Kahrel.

 

Could you please check if there are at least new entries for Invoke()? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2024 Aug 03, 2024

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 )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 03, 2024 Aug 03, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines