Macro to add translation comment


I am trying to find a way to add a translation comment to multiple segments (i.e. the same translation comment to all segments) in a batch mode.  More specifically, I'm thinking of achieving that by running a macro.  This macro adds a comment to "new" and "fuzzy match" segments as well as other segments that currently do not have any translation comments.  In doing so, the macro need to calculate the total word count of the source segments which the comment has been added to up to X number of words, say 1000 words, and stop adding the comments when reached to the number.

I've been looking at this forum but couldn't find any discussion.  I appreciate any input or direction that I can look into.