Last active
June 10, 2018 13:54
-
-
Save philronan/d5a9086190c5ff865eeb04a62b1ddb66 to your computer and use it in GitHub Desktop.
Change the font of all text boxes in a Powerpoint presentation
This file contains 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 PowerPoint" | |
tell active presentation | |
set theSlideCount to count slides | |
repeat with a from 1 to theSlideCount | |
set numShapes to count shapes in slide a | |
repeat with b from 1 to numShapes | |
set sh to (shape b of slide a) | |
if has text frame of sh then | |
set f to font of text range of text frame of sh | |
set font name of f to "Arial" | |
set east asian name of f to "MS Gothic" | |
end if | |
end repeat | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment