• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Moving Reminders that are due today to tomorrow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Moving Reminders that are due today to tomorrow
      • From: "Stockly, Ed via AppleScript-Users" <email@hidden>
  • Prev by Date: Re: Trying to set the system volume in a Mail Rule AppleScript
  • Next by Date: Re: Moving Reminders that are due today to tomorrow
  • Previous by thread: Re: Trying to set the system volume in a Mail Rule AppleScript
  • Next by thread: Re: Moving Reminders that are due today to tomorrow
  • Index(es):
    • Date
    • Thread