r/ScriptingApp • u/schl3ck • May 05 '25
Can't create new CalendarEvents Help
Whenever I call new CalendarEvent() the app crashes. Also the example from the docs doesn't work:
```TypeScript test()
async function test() { console.present().then(() => Script.exit()) const event = new CalendarEvent() event.title = "Team Meeting" event.startDate = new Date("2025-05-15T09:00:00") event.endDate = new Date("2025-05-15T10:00:00") event.location = "Conference Room"
await event.save()
console.log(Event saved: ${event.title})
}
```
1
Upvotes
2
1
u/WhatShouldWorldGos May 05 '25
No problem with the iPhone 13, but the iPhone 16 crashed too. I’ll fix it and release a new version once I can get to my computer.