[CS5] Unable to save or close a document
I'm working on porting a plugin from CS4 to CS5. One of its functions is to save each page of a document as a separate file. It does this by saving a copy of the main document, opening it, removing the unwanted pages, and finally saving it. This worked fine in all previous InDesign versions, but in CS5 IDocFileHander is returning false for CanSave() and CanClose(). Ignoring that, or processing a save or close command directly, causes ID to enter protective shutdown.
There was another message posted recently with a similar problem ( http://forums.adobe.com/thread/647045?tstart=0 ), but I'm not performing my actions as part of a command or a command sequence. Is there another reason why InDesign wouldn't allow me to save or close a document?