我正在尝试编写一个AppleScript,它只是迭代未完成的提醒并显示名称。下面的代码生成此错误: Reminders got an error: Can’t make name of reminder (reminder id \"x-apple-reminder://838D4BDF-C520-440A-ADF2-B66FD602ADDC\") into type string
我想通过从1迭代到1来弄清楚它是如何工作的 (count of notCompleted)
;但我想了解为什么下面的代码不起作用。 (事实上我希望下面的代码可以工作,这表明我误解了什么类型的对象 notCompleted
。)究竟包含在内 notCompleted
,究竟是什么类型的 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