I'm trying to change the content of an opened indesign document (opened in indesign server)
BUT, if the lockState is CHECKED_IN_STORY I run into some trouble
If I try to change the content I will get an error message saying that the "Object is locked" without a reference to the type of the object that is locked. If I try to first checkOut the story, the execution will stop at that line with a message like "User canceled this action".
What is strange is that a story.remove() will work as expected and delete the story regardless of its lock state.