Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Apple Script to convert DOCX into PDF
on run {input, parameters}
tell application id ""
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