Created
April 17, 2019 14:18
-
-
Save dettmering/63b5dcce73bfca2ffe12bf2371692e92 to your computer and use it in GitHub Desktop.
Apple Script to convert DOCX into PDF
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
on run {input, parameters} | |
tell application id "com.microsoft.Word" | |
activate | |
repeat with aFile in input | |
open aFile | |
set theOutputPath to ((aFile as text) & ".pdf") | |
tell active document | |
save as it file name theOutputPath file format format PDF | |
close saving no | |
end tell | |
end repeat | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment