11 Replies Latest reply on Nov 3, 2016 3:03 PM by Tom Ruark

    activeHistoryState after changing activeDocument doesn't work at all.

    lukaszmtw

      Hey.

       

      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:

      app.activeDocument = app.documents[0];
      app.activeDocument = app.documents[1];
      $.writeln(app.activeDocument.activeHistoryState);
      

       

      Thanks!