Skip to content

Instantly share code, notes, and snippets.

@vcsjones
Created January 15, 2016 20:17
Show Gist options
  • Save vcsjones/aef6a98db4449eb43944 to your computer and use it in GitHub Desktop.
Save vcsjones/aef6a98db4449eb43944 to your computer and use it in GitHub Desktop.

Installing

  1. Open Automator.
  2. Create a Service.
  3. Create a service for "Word" and have the service receive no input.
  4. Create an action for "Run Apple Script"
  5. Insert one of the scripts.
  6. Repeat for the other script.
  7. Assign keyboard shortcuts to the services in Keyboard Shortcuts in settings.
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
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