Photoshop: activeHistoryState after changing activeDocument doesn't work at all

  • 2
  • Problem
  • Updated 2 years ago
  • Solved
  • (Edited)

I have a script, which basicly changes activeDocument to doc_a, then it changes activeDocument back do doc_b and tries to check activeDocument.activeHistoryState here. It always stops executing here and I get "General Photoshop error occured. This functionality may not be available in this version of Photoshop.". Any ideas how to solve this?

The code for reproducing this bug: (I'm using CC 2015.5.1, but it doesn't work on CC 2014 either)

app.activeDocument = app.documents[0];  
app.activeDocument = app.documents[1];  
$.writeln(app.activeDocument.activeHistoryState);  
Photo of Łukasz Oślizło

Łukasz Oślizło

  • 7 Posts
  • 1 Reply Like

Posted 2 years ago

  • 2
Photo of Tom Ruark

Tom Ruark, Official Rep

  • 27 Posts
  • 12 Reply Likes
Official Response
Try with CC 2017. I believe we fixed this issue.