Skip to content

Instantly share code, notes, and snippets.

@dettmering
Created April 17, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dettmering/63b5dcce73bfca2ffe12bf2371692e92 to your computer and use it in GitHub Desktop.
Save dettmering/63b5dcce73bfca2ffe12bf2371692e92 to your computer and use it in GitHub Desktop.
Apple Script to convert DOCX into PDF
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