是否可以使用 Apps 脚本在 Google 文档中添加归因于特定文本的评论?
Is it possible to add a comment attributed to specific text within Google Docs using Apps Script?
Google 文档评论:
我的目标是使用 Google Apps 脚本添加特定于文本的评论,如上图所示。现在我有这个工作代码,但它只为整个文档添加了一般注释。
function myFunction() {
var fileId = '{FILE_ID}';
var resource = {'content': 'comment body text'};
Drive.Comments.insert(resource, name);
}
不可能。在此视频中 -- Google Drive SDK: Announcing the Comments API (5:30 - 5:39) -- 提到:
..We do have a proprietary anchoring scheme, which does make it difficult for, or actually rather impossible for you to create comments that are anchored to text in our document formats...
“在我们的文档格式中”是指 Google 文档和表格。
answer. For more details regarding Comments, you can check the Manage Comments and Discussions 文档中也提到了这一点。
Google 文档评论:
我的目标是使用 Google Apps 脚本添加特定于文本的评论,如上图所示。现在我有这个工作代码,但它只为整个文档添加了一般注释。
function myFunction() {
var fileId = '{FILE_ID}';
var resource = {'content': 'comment body text'};
Drive.Comments.insert(resource, name);
}
不可能。在此视频中 -- Google Drive SDK: Announcing the Comments API (5:30 - 5:39) -- 提到:
..We do have a proprietary anchoring scheme, which does make it difficult for, or actually rather impossible for you to create comments that are anchored to text in our document formats...
“在我们的文档格式中”是指 Google 文档和表格。
answer. For more details regarding Comments, you can check the Manage Comments and Discussions 文档中也提到了这一点。