Inspiring
September 13, 2021
Question
Documents cannot be saved - '..there are open transactions in process on the database.'
- September 13, 2021
- 6 replies
- 1162 views
We have a document with a rectangle and an image in it. We tried to set clippingPath property of the image running the following script:
var obj = app.activeDocument.allGraphics[0];
obj.clippingPath.paths.add();
obj.clippingPath.paths[0].pathType = 1668051812; //PathType.CLOSED_PATH
obj.clippingPath.paths[0].entirePath = [[30.7,100.888888888889],[30.7,46],[84,40.7],[102.75,100.888888888889]
Running the script we couldn't save the document and we had to close it loosing all changes. Trying to save it in the script we got:
Error: Cannot save document because there are open transactions in process on the database.
Please advice. We have to set clippingPath via a script.
