{
  "id": "calendar-list-events",
  "name": "list-upcoming-events",
  "description": "list-upcoming-events",
  "platform": "calendar",
  "version": "1.0.0",
  "tags": [
    "calendar",
    "recorded"
  ],
  "successCount": 0,
  "failCount": 0,
  "steps": [
    {
      "action": "applescript",
      "script": "tell application \"Calendar\"\n\tset startDate to current date\n\tset endDate to startDate + (7 * days)\n\tset output to \"\"\n\trepeat with c in every calendar\n\t\tset upcoming to (every event of c whose start date >= startDate and start date <= endDate)\n\t\trepeat with e in upcoming\n\t\t\tset output to output & name of c & \": \" & summary of e & \" -- \" & start date of e & linefeed\n\t\tend repeat\n\tend repeat\n\tif output is \"\" then return \"No events this week\"\n\treturn output\nend tell",
      "description": "AppleScript: tell application \"Calendar\"\n\tset startDate to current date\n\tset endDate to start..."
    }
  ]
}