3 Replies Latest reply on Sep 8, 2011 10:29 AM by Harbs.

    [CS5][JS] document.close() doesn't close file but leaves it open?

    lhanneman Level 1

      Hello,

       

      I've run into a scenario in which I have a Document object created in a script, lets say it's called "myDoc", and in some testing it seems that when I call myDoc.close() with no parameters in the method call, it just skips over that (but does NOT error), and acts like it was successful. However, the document is remaining open on the server.

       

      I've gotten it to work by specifying a Save option (either yes or no), but I don't see any documentation anywhere that says the close method requires parameters? Is this a known "issue" or has anyone else experienced this?

       

      Thanks in advance for any help/suggestions/advice!

       

      -Lloyd