Moving Reminders that are due today to tomorrow
Moving Reminders that are due today to tomorrow
- Subject: Moving Reminders that are due today to tomorrow
- From: Joel Esler via AppleScript-Users <email@hidden>
- Date: Tue, 25 Apr 2023 11:07:54 -0400
At the end of the day, need to move the Reminders that were due today to
tomorrow? I do.
So I wrote this script. It compiles, and it runs, but it doesn’t actually
perform the action.
Any suggestions?
set currentDate to current date
set currentYear to year of currentDate
set currentMonth to month of currentDate as integer
set currentDay to day of currentDate
set todayStart to date ((currentMonth as string) & "/" & (currentDay as string)
& "/" & (currentYear as string) & " 12:00:00 AM")
set todayEnd to (todayStart + 24 * hours) - 1
set theDueDate to (current date) + 1 * days
tell application "Reminders"
set todayReminders to {}
repeat with aList in lists
set todayReminders to todayReminders & (reminders of aList
whose (due date ≥ todayStart) and (due date ≤ todayEnd))
end repeat
repeat with aReminder in todayReminders
tell aReminder
set oldDueDate to due date
set due date to theDueDate
display dialog "Updated reminder: " & name & return &
"Old due date: " & oldDueDate & return & "New due date: " & due date
end tell
end repeat
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden