I have the following code that creates an appointment that recurs 6 times. This is working nicely, however, it would be great if I could access the number of the recurrence in a variable and print that in the title as "appointment 1", "appointment 2", etc. Is this possible with the addWeeklyRule method or would it only be possible with a loop?
var eventSeries = cal3.createEventSeries(name, startTime, endTime, CalendarApp.newRecurrence().addWeeklyRule().times(6), {
description: descriptionText