I'm trying to write an AppleScript that simply iterates over uncompleted Reminders and displays the name. The code below generates this error: Reminders got an error: Can’t make name of reminder (reminder id \"x-apple-reminder://838D4BDF-C520-440A-ADF2-B66FD602ADDC\") into type string
I figured out how to make it work by iterating from 1 to (count of notCompleted)
; but I would like to understand why the code below doesn't work. (The fact that I expect the code below to work suggests that I am misunderstanding what kind of objects are in notCompleted
.) What exactly is contained in notCompleted
, and what exactly is the type of currentReminder
?
tell application "Reminders"
set snoozeList to "Snooze"
set notCompleted to reminders in list snoozeList whose completed is false
repeat with currentReminder in notCompleted
display dialog (name of reminder currentReminder)
end repeat
end tell