The For each event in a calendar iterator enables automation developers to loop through events in a specified macOS Apple Calendar. This iterator is ideal for workflows that require reading, processing, or validating multiple calendar events dynamically.

The For each event in a calendar iterator uses the active session and supports filtering of events based on the following criteria:
  • Calendar name
  • Event title
  • Attendees
  • Start Date or Time
  • End Date or Time
For each event retrieved, the iterator can return detailed properties, including:
  • Summary
  • Start date
  • Location
  • Attendees If access is available)

Procedure

  1. Double-click or drag the Loop action from the Loop package in the Actions palette.
  2. Select the For each event in a calendar option from the Iterator list.
  3. Use the Session name field to select one of the following tabs:
    • Session name: Enter the session name that you have used in the Connect action of the Apple Calendar package.
    • Variable: Enter the variable that you have used to store the Apple Calendar session name.
  4. In the Calendar name field, enter the name of the calendar to iterate event.
  5. In the Title field, enter the name of the title to filter event.
  6. In the Invitees field, enter the list of invitees to filter event.
  7. Use the Start date-time and End date-time drop-down menus to select an existing start and end date, and time for the calendar event.
    If there is not start and end time available, click the Create variable icon to create a Datetime variable.
  8. Use the Assign the current value to variable option to assign the value to a variable using one of the following options:
    • Multiple variables: Click Add variable mapping button to associate each dictionary key with a variable.

      Use this option to avoid using actions to extract the dictionary values.

    • Dictionary: Insert or create a dictionary variable.

      Dictionary contains the output variables and values in key-value pairs. While creating a variable, you can click the Create variable icon to create a Datetime variable. The variable can be accessed using the corresponding key.