I'm pretty new to Google-Apps-Script
. Could you give an example how to use
Calendar > Recurrence > onlyOnWeeks
I want to create a daily event, but only in three specific weeks. My solution does not to work correctly. Daily events are creating but for every week.
var myrecurrence = CalendarApp.newRecurrence()
.addDailyRule().onlyOnWeeks([44,45,51]);
cal.createEventSeries(mytitle, startTime, endTime, myrecurrence);