Is there a way to apply the status to currectly active comment?
Is there a way to apply the status to currectly active comment?
I don’t see a way to get the acive comment, but I don‘t use PDF comments, so maybe someone else can help
You should be able to loop through all the comments, and check the status–if it’s open then change it to resolved:
//the active document’s comments
var pc=app.activeDocument.pdfComments;
//sets all comments to resolved
for (var i = 0; i < pc.length; i++){
if ( pc[i].commentStatus == CommentStatusEnum.OPEN_STATUS) {
pc[i].changeStatus(CommentStatusEnum.RESOLVED_STATUS)
}
};