Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

greedist

macrumors newbie
Original poster
Jul 7, 2021
16
0
Can I use an Apple script to mark a particular item in a reminder as complete?


r28vBk.gif
 
To script any application, start with its scripting dictionary, which contains the available commands.

By looking at the scripting dictionary for Reminders.app, you will see that the application can have lists. These lists have names, and can contain reminders, which also have names. These reminders have other properties, such as completed, so you can do stuff like:

AppleScript:
tell application "Reminders"
    log (get name of lists)
    set myList to list "Test"
    log (get properties of myList)

    log (get name of reminders of myList)
    set myReminder to reminder "Pizza" of myList
    log (get properties of myReminder)

    set completed of myReminder to true
end tell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.