MacOS Automator + Applescript solution for exporting docx to pdf
问题 Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator Service: Used the following script: on run {input, parameters} tell application id "com.microsoft.Word" activate open input set doc to name of active window set theOutputPath to (input & ".pdf") save as active document file name theOutputPath file