A companion action to my previous Fantastically Good Event Parser, this time for adding reminders to the Reminders app. Supports natural language date and time entry and other Fantastical-style functionality.
Yes, this is actually quite simple to achieve. The only bit of the script you need to edit is the for loop right at the end. You just need to add a condition to check whether the line contains a certain string, and then only apply the function when it doesn’t. Something like this perhaps:
for (let line of lines) {
if (!string.includes("#")) {
makeReminder(line);
}
}
This would force the script to ignore all lines containing a # character. You could customise this as you like.
I’m trying to consider a version of what you made that would parse a page from a journal in drafts and add events and tasks to fantastical by finding a character and then using that line to add either a event or a task.
* Bullet points / asterisk for a todo
[ ] for a task (defaulting to now today)
- something longer
Http://someurl.com
Ideally if
‘- something longer’
Could be added as a note in an event I would be delighted
Like wise urls and all the other good things like /calendar and /repeats etc too.
Is this feasible with the above hack or am I barking in vain in the wrong forest?
I’m having an issue where the default reminder time is not being set if I don’t add a date.
Also is it possible for the script to interpret “in 10 minutes?”
Update: I think I naively assumed that if I didn’t add any reference to a day or date or time the script would set the reminder to today at 12pm. But I have to add a day and then the alarm gets set for the default time of 12.