Script to automatically make a copy of a Google Document for editing

前端 未结 4 828
别那么骄傲
别那么骄傲 2021-02-01 21:35

I feel like a total noob posting here. I know CSS, HTML, and XML pretty well but have always avoided JS. I know very little javascript and recently started a Lynda.com course

4条回答
  •  旧时难觅i
    2021-02-01 22:12

    Since DocsList is deprecated, currently you can make a copy of a file using the following code:

    File file=DriveApp.getFileById(fileId).makeCopy(fileName, folder);
    

    where fileId can be obtained as explained in the answer by Arun Nagarajan.

提交回复
热议问题