I've been testing some Applescripts to quickly convert MS Word documents to PDF. I've found this particular script very useful:
tell application "Finder"
set input to selection
tell application id "com.microsoft.Word"
set view type of view of active window to draft view
repeat with aFile in input
set theOutputPath to ((aFile as text) & ".pdf")
repeat while not (active document is not missing value)
set activeDoc to active document
save as activeDoc file name theOutputPath file format format PDF
close active document saving no
Tested with Word for Mac version 16.44
- In the Finder, select the MS Word documents that you want to convert.
- Run the script.
[Edited at 2020-12-20 10:22 GMT]