Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

keystothecity

macrumors member
Original poster
Jul 4, 2013
39
0
Hi Guys,

I'm hoping someone might be able to recommend a good app/program to me.

I have a bunch of .docx (Microsoft Word) files that I need to convert to PDF on a daily basis. Can anyone recommend a good program for this?

I have been using Zamzar, an online site in the past, but I"m hoping I can find an actual application to do this.

Thanks in advance for your help!
 
How many documents are you talking about? You know you can do that within Word, with no need for another app, if it's not too many documents.
 
Here is how to create an Application using Automator upon which you can drag and drop any number of Word documents, which will be saved as pdf files in the same location with the same names as the original.

PDF-Automator.png


The Applescript code to be placed in the Run Applescript action can be found on the Apple Support Communities website, and is repeated here:

Code:
property theList : {"doc", "docx"}
 
on run {input, parameters}
          set output to {}
          tell application "Microsoft Word" to set theOldDefaultPath to get default file path file path type documents path
          repeat with x in input
                    try
                              set theDoc to contents of x
                              tell application "Finder"
                                        set theFilePath to container of theDoc as text
 
                                        set ext to name extension of theDoc
                                        if ext is in theList then
                                                  set theName to name of theDoc
                                                  copy length of theName to l
                                                  copy length of ext to exl
 
                                                  set n to l - exl - 1
                                                  copy characters 1 through n of theName as string to theFilename
 
                                                  set theFilename to theFilename & ".pdf"
 
                                                  tell application "Microsoft Word"
  set default file path file path type documents path path theFilePath
                                                            open theDoc
                                                            set theActiveDoc to the active document
  save as theActiveDoc file format format PDF file name theFilename
                                                            copy (POSIX path of (theFilePath & theFilename as string)) to end of output
  close theActiveDoc
                                                  end tell
                                        end if
                              end tell
                    end try
          end repeat
          tell application "Microsoft Word" to set default file path file path type documents path path theOldDefaultPath
 
 
          return output
end run

It works very well.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.