I have two separate but related questions regarding the (date) format used in applescript especially the one that sets due dates in reminder.
The line in question is this:
...make new reminder with properties {schedule:once, due date:(current date)}
1. Date format for (current date)
Let’s say I want to make a new reminder with a specific due date in mind, say 1 Jul 2022. I’ve tried a variety of combination but they ended with “AppleEvent handler failed.” What is the accepted format?
2. Set relative reminder at a specific time
If I want to create a reminder with due date “tomorrow 8am” in applescript.
My current script does this:
set tomDate to ((current date) + 60 * 60 * 24)
…bunch of other stuff
tell myRecord to make new reminder with properties {schedule:once, due date:tomDate}
Which creates a reminder exactly 24 hours from now. So I only got the “tomorrow” right. What should I be doing so that I can set the relative date (tomorrow), at a specific time (8am)?