1
我使用AppleScript將PowerPoint幻燈片顯示爲生成幻燈片的代碼的手動測試/檢查步驟的一部分。如何用AppleScript更改PowerPoint縮放級別?
這一切都很好,但我不能解決如何告訴PowerPoint放大到'適合'或188%在我的情況。
set the zoom of the active window to 185
什麼都不做。
我該如何獲得對感興趣的物業的參考?
我使用AppleScript將PowerPoint幻燈片顯示爲生成幻燈片的代碼的手動測試/檢查步驟的一部分。如何用AppleScript更改PowerPoint縮放級別?
這一切都很好,但我不能解決如何告訴PowerPoint放大到'適合'或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
先生,你是個天才! :) – scanny
也經過測試,適用於Microsoft PowerPoint 2011 v14.7.7(Mac) – tohster