Open tkluysk opened 6 years ago
Yeah looks like I would need to use the Comments API to get current comments and copy to new file.
I would put this in the "not impossible but not trivial" category. I think the major downside would be increased API usage - one doc could potentially have hundreds of comments.
The developer of CopyComments has been so kind to put up his source code on my request: https://github.com/jsonchin/Copy-Comments
He seems to have some throttling/retry code in there.
GDrive now allows for copying with comments, and even suggestions:
I had a quick look at the API, and unfortunately that feature is not directly exposed: https://developers.google.com/drive/v3/reference/files/copy
It can be done though. Other Chrome extensions do exactly that (but don't deep copy like this script).
https://webapps.stackexchange.com/questions/47732/google-apps-script-copy-document-comments