如何在使用Apple脚本打开会议窗口时从MS Outlook获取会议详细信息

时间:2014-01-13 23:47:57

标签: macos outlook applescript

我正在尝试在MS Outlook日历上执行Apple脚本以获取会议详细信息,例如“日期和时间”,时区和其他内容。

我可以在会议邀请被关闭然后被选中时获取需求详细信息,但是当打开相同的邀请时,我无法从苹果脚本中获取任何详细信息。

有人可以建议我到底需要做些什么才能获得所需的详细信息。

谢谢, 拉维。

1 个答案:

答案 0 :(得分:1)

这是一种方式:

tell application "Microsoft Outlook"
    if (count of (windows whose index is 1)) is not 0 then
        set olObject to object of item 1 of (windows whose index is 1)
        if class of olObject is calendar event then
            set thisEvent to olObject
            get timezone of thisEvent
            get start time of thisEvent
        end if
    end if
end tell
相关问题