Hello
I have been using Events in Fantastical but it has stopped working on my iPad (IOS 26.5 Fantastical 4.1.13).
My script has one additional line to make it run without user interaction.
When the action is run the correct Calendar is selected but I have to press on the calendar which is presented before the script continues. Any thoughts how I could trouble shoot this - I am at a loss? Or is there now a better way of bulk adding events to Apple Calendar?
Thanks
// split draft into lines
const lines = draft.content.split("\\n");
const baseURL = "fantastical2://x-callback-url/parse";
// loop over lines and send each to Fantastical
for(var line of lines) {
if (line.length == 0) { continue; }
// create and configure callback object
var cb = CallbackURL.create();
cb.baseURL = baseURL;
cb.addParameter("sentence", line);
cb.addParameter("add", "1");
// open and wait for result
var success = cb.open();
if (!success) {
if (cb.status == "cancel") {
context.cancel();
break;
}
else {
context.fail();
break;
}
}
}