Hi Community,
I'm in need of some assistance with an AppleScript that increments the due date of reminders in the Apple Reminders app by one day. The reminders are set with a due date but do not have a specific time associated with them; they are just set to occur at some point during the day.
The challenge I'm facing is that when I use AppleScript to add one day to the due date, the script is setting the new due date with a time of midnight. Since the original reminders do not have a time (just a date), I want the script to increment the date without adding a time.
Here is the script I'm currently using:
set myList to list "My List"
repeat with myReminder in reminders of myList
if (due date of myReminder is not missing value) then
set currentDueDate to due date of myReminder
set newDueDate to currentDueDate + (1 * days)
set due date of myReminder to newDueDate
end if
end repeat
end tell
I am looking for a way to preserve the 'date only' attribute of the reminder when adding a day, so it does not default to a time of 00:00.
Does anyone have experience with this, or can anyone provide guidance on how to accomplish this? I haven't found a way to specify 'no time' or 'all-day' in AppleScript for the Reminders app.
Any help or pointers would be greatly appreciated. Thank you in advance!