发生意外错误

时间:2016-01-21 21:11:47

标签: google-apps-script

所以我正在玩这个剧本......

function driveAutoTrash(){ try{
var garbage = DriveApp.getFolderById("0B-UDPaPCh-pjUUt3aHRIekJQOXM")
var garbagefolders = garbage.getFolders();
var garbagefiles = garbage.getFiles();
while(garbagefolders.hasNext()){
  var folder = garbagefolders.next();
  folder.setTrashed(true);
}while(garbagefiles.hasNext()){
  var file = garbagefiles.next();
  file.setTrashed(true)
}}}

当我尝试使用"当前项目的触发器"设置触发器时事情,它抛出"发生意外错误"用一个按钮来解雇它。有任何想法吗? (是的,它确实有尝试的抓地力)

0 个答案:

没有答案