如何使用 AppleScript 更改 PowerPoint 缩放级别?

How change PowerPoint zoom level with AppleScript?

我正在使用 AppleScript 显示 PowerPoint 幻灯片,作为生成幻灯片的代码的手动 testing/inspection 步骤的一部分。

一切正常,但我不知道如何让 PowerPoint 缩放到 'fit' 或 188%(在我的例子中)。

set the zoom of the active window to 185 什么都不做。

如何获得此处感兴趣的 属性 的引用?

这适用于 Microsoft Office 2016,测试版本 15.27:

-- Example: Set zoom to 188% --
tell application "Microsoft PowerPoint"
    tell active window to set zoom of its view to 188
end tell

-- Example: Set zoom to fit --
tell application "Microsoft PowerPoint"
    tell active window to set zoom to fit of its view to true
end tell