SHARE
TWEET

Untitled

a guest Jun 15th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ScriptApp.newTrigger("RefreshRates").timeBased().inTimezone("GMT").everyHours(1).nearMinute(0).create();
  2.      
  3. function createWeeklyTrigger() {
  4.     var days = [ScriptApp.WeekDay.MONDAY, ScriptApp.WeekDay.TUESDAY,
  5.                 ScriptApp.WeekDay.WEDNESDAY, ScriptApp.WeekDay.THURSDAY,                                            
  6.                 ScriptApp.WeekDay.FRIDAY];
  7.     for (var i=0; i<days.length; i++) {
  8.        ScriptApp.newTrigger("your_function_name")
  9.                 .timeBased().onWeekDay(days[i])
  10.                 .atHour(11).create();
  11.     }
  12.  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top