How can I add a comment to a document via an automation chain?

Most information regarding a document is modifiable in some way in Studio, but I haven't found anything to manage comments.

The closest I've found is the CommentManager class, but I have not been able to get that to work in a Run Script

CommentManager cm = Framework.getService(CommentManager.class);

This errors with the message

An error occured while executing the chain 'TestChain': [Error: could not access: class; in class: java.lang.Class] [Near : {... Unknown ....}] ^ [Line: 1, Column: 0]

I don't know if this is the correct route or if it's even possible.

1 votes

1 answers




you just need to do

cm = Framework.getService(CommentManager);

regards, Thierry

0 votes