Google 云端硬盘有一个问题:如果您取消共享顶级文件夹,该文件夹中的所有内容仍会共享...我不确定这么大的错误如何幸存,但它确实存在...详细信息:
http://productforums.google.com/forum/#!topic/drive/p3LZQnRNB24
我不想手动浏览和取消共享所有内容,所以我想我可以创建一个脚本,我可以将文件夹 ID 插入其中并让它完成所有工作。
我该怎么做呢?
此代码适用于插入图像
但我想从谷歌表中获取网址.我把"UrlFetchApp.fetch("sourceSheet.getActiveCell().getValue()");"
在下面的代码中显示我对如何解决这个问题的思考...
function insertImage() {
// Retrieve an image from the web.
var resp = UrlFetchApp.fetch("sourceSheet.getActiveCell().getValue()");
// Create a document.
var doc = DocumentApp.openById("1qWnGAR_WBpHkSdY5frld0VNfHtQ6BSzGxlzVNDi5xMk");
// Append the image to the first paragraph.
doc.getChild(2).asParagraph().appendInlineImage(resp);
}
Run Code Online (Sandbox Code Playgroud)
最终目标是我有一张表格,其中包含一列中文档的ID以及要插入另一列的图像的ulr.我希望脚本运行,以便我可以将每个图像插入每个文档.