Save as PDF using applescript in Word 365
This is wasting hours of my life!!
This worked fine in word 2011 but now that I have been forced to upgrade to 365 it no longer saves as pdf:
tell application "Microsoft Word"
open "/users/raft/desktop/esd.docx"
set theActiveDoc to the active document
save theActiveDoc in "/users/raft/desktop" as format PDF
close front document of application "Microsoft Word" saving no
end tell
Please help. I just can't figure this out!