我是Applescript世界的新手! 我正在试图弄清楚如何找到包含某些单词的特定日历事件。 特别是,我不知道如何重复在日历的事件中找到某个单词...
提前致谢
答案 0 :(得分:1)
这里有一个MacTech教程,其中包含一个搜索示例:http://www.mactech.com/articles/mactech/Vol.21/21.11/ScriptingiCal/index.html
以下是您可以找到与搜索条件匹配的日历事件的工作示例:
tell application "iCal"
tell calendar "Domestic"
set theEventList to every event whose summary contains "Recycling"
end tell
set theEvent to first item of theEventList
return summary of theEvent
end tell
这个例子适合我。它在我的“国内”日历中查找包含术语“回收”的所有事件,然后返回此列表中第一个的摘要。