Skip to content

Instantly share code, notes, and snippets.

@onesword0618
Created December 25, 2018 15:40
Show Gist options
  • Select an option

  • Save onesword0618/dffaf8523830435a71f28b04f9985ee7 to your computer and use it in GitHub Desktop.

Select an option

Save onesword0618/dffaf8523830435a71f28b04f9985ee7 to your computer and use it in GitHub Desktop.
DriveApp
// ログにドライブ内の含まれているファイルすべての名前を出力する
var files = DriveApp.getFiles();
// ファイル数の分だけ繰り返し処理を実施する
while (files.hasNext()) {
var file = files.next();
Logger.log(file.getName());
}
@onesword0618
Copy link
Copy Markdown
Author

マクロでもよくある機能
定期的に実行するようにすれば一定のテンプレートを複製してフォルダとファイルを作成することができる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment