【发布时间】:2019-12-30 18:13:42
【问题描述】:
有人有将存储在 Google Drive 中的一批 .docx 文件转换为 Google Doc 格式的经验吗?
我阅读了 Youssef 3 年前发布的解决方案,但它不再起作用了。
Docx to Google Doc using Google Script
当我尝试在下面复制他的解决方案时,我收到以下错误消息:很抱歉,发生了服务器错误。请稍等,然后重试。
var docx = DriveApp.getFileById("###");
var newDoc = Drive.newFile();
var blob =docx.getBlob();
var file=Drive.Files.insert(newDoc,blob,{convert:true});
代码停在docx.getBlob()
非常感谢您的支持!
【问题讨论】: