scanny scanny - 1 year ago 108
AppleScript Question

How change PowerPoint zoom level with AppleScript?

I'm using AppleScript to show PowerPoint slides as part of a manual testing/inspection step for code that generates the slides.

It's all working nicely, but I can't work out how to tell PowerPoint to zoom to 'fit' or 188% in my case.

set the zoom of the active window to 185
does nothing.

How do I get a reference to the property of interest here?

Answer Source

This work on Microsoft Office 2016

tell application "Microsoft PowerPoint" -- tested on Version 15.27
    tell active window to set zoom of its view to 188 -- 188%
    -- tell active window to set zoom to fit of its view to true --  to zoom to 'fit'
end tell
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download