1時間ごとにmyFunctionを実行するトリガーをスクリプトで書きたくて
コード.gs
function createTriggers1mins() { var trigger = ScriptApp.newTrigger('myFunction') .timeBased() .everyhours(1) .create(); } function myFunction() { console.log("log: " + new Date()); } |
参考
timeBased()
https://developers.google.com/apps-script/reference/script/trigger-builder#timeBased()