Google script trigger weekdays only -
i have tool have created google docs, part of set of numbers on daily basis @ 11am use create chart show progress on time. have script running using trigger set backup data once week.
what data on weekdays weekend data throwing averages out. monday - friday daily @ 11am
does have way of doing setting script run way programatically?
you can use following function create triggers run every weekday @ 11 am.
function createtriggers() { var days = [scriptapp.weekday.monday, scriptapp.weekday.tuesday, scriptapp.weekday.wednesday, scriptapp.weekday.thursday, scriptapp.weekday.friday]; (var i=0; i<days.length; i++) { scriptapp.newtrigger("your_function_name") .timebased().onweekday(days[i]) .athour(11).create(); } }
Comments
Post a Comment