1 Reply Latest reply on Jan 8, 2009 2:54 AM by Peter Kahrel

    [JS :: CSX] DataMerge - mergeRecords()

      Hi folks,

      I am building a script that uses the mergeRecords() function which is a part of the DataMerge object. This function creates a new document which contains a range of records based on the data of a data merge data set.

      I have noticed that this new document which the mergeRecords() function creates is created with its showingWindow option set to true. I would prefer this be false. Is there any way to set this option manually. I can not see a showingWindow propert listed for the Document object. The other thing i tried was to close the document window via:

      ]app.activeDocument.windows.everyItem().close();

      However this produces the error:

      ]Can't close last document window. Close the document instead.

      Does any one know how i might keep this documents window hidden?