ericyd / gdrive-copy

Web app to copy a Google Drive folder
https://script.google.com/macros/s/AKfycbxbGNGajrxv-HbX2sVY2OTu7yj9VvxlOMOeQblZFuq7rYm7uyo/exec
MIT License
1.58k stars 341 forks source link

Feature request: copy comments #40

Open tkluysk opened 6 years ago

tkluysk commented 6 years ago

GDrive now allows for copying with comments, and even suggestions:

api_test_-_google_docs

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

ericyd commented 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.

tkluysk commented 6 years ago

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.