- Open Automator.
- Create a Service.
- Create a service for "Word" and have the service receive no input.
- Create an action for "Run Apple Script"
- Insert one of the scripts.
- Repeat for the other script.
- Assign keyboard shortcuts to the services in Keyboard Shortcuts in settings.
-
-
Save kevindente/32e3b80182aef20e6534 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Microsoft Word" | |
activate | |
set currentZoom to percentage of zoom of view of active window | |
set newZoom to (round (currentZoom + 50) / 50) * 50 | |
log newZoom | |
if newZoom <= 500 then | |
set percentage of zoom of view of active window to newZoom | |
end if | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Microsoft Word" | |
activate | |
set currentZoom to percentage of zoom of view of active window | |
set newZoom to (round (currentZoom - 50) / 50) * 50 | |
log newZoom | |
if newZoom >= 10 then | |
set percentage of zoom of view of active window to newZoom | |
end if | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment