Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

[CS2] undoHistory doesn't work

$
0
0
Hi,
The following SOAP request for InDesign Server CS2 returns undoSize = 0.
Why? :(
Is there any way to enable undo during script operation?

Thanks


  
  
     
        
           
{
myDocument = app.documents.add();
myDocument.enableUndo = true;
app.consoleout(" =" + myDocument.enableUndo);
myPage = myDocument.pages.item(0);
myTextFrame = myPage.textFrames.add();
myTextFrame.geometricBounds = ["6p0", "6p0", "18p0", "18p0"];
myTextFrame.contents = "Hello World!";
myTextFrame = myPage.textFrames.add();
var undoSize =  myDocument.undoHistory.length;
myDocument.close(SaveOptions.no);
result = "undoSize = " + undoSize;
}
      

            javascript
        

     

  


Viewing all articles
Browse latest Browse all 20709

Trending Articles