1

I have tons of Pages files lying around taking up precious space on my SSD.

I want to batch convert them to PDF preferably via a terminal command. I have iWork '13 and iWork '09. AppleScript-ability of Pages has historically been bad. Who has ideas?

4
  • 1
    Those pages are in what format? What have you tried so far? Dec 20, 2013 at 22:23
  • Check out this script by Yvan Koenig Dec 21, 2013 at 13:10
  • Pages '13 aka the new iWork version that was released with Mavericks. I don't understand why this question gets downvoted. I have tried old Applescripts by googling but they no longer work (and didn't work with Pages '09 either).
    – Wolfr
    Dec 22, 2013 at 11:30
  • Can you upload them to google drive and have google print as pdf, batch style? Dec 26, 2013 at 19:45

1 Answer 1

0

Well... you need something that

  1. understand the iWork file formats,
  2. can render the documents to then create the PDF.

Unless you want to re-invent the iWork suite... Sounds simpler to just tell the iWork apps what you want from them.

You would do that via the Scripting Bridge

I would use Applescript, but perhaps you can use Ruby and Python with the Scripting Bridge to accomplish what you need

With Scripting Bridge, RubyCocoa and PyObjC scripts can do what AppleScript scripts can do: control scriptable applications and exchange data with them.

I haven't used the Scripting Bridge in a while, but I believe you can tell applications to print documents. And any application that can print in OS X can send it to PDF instead.

Answer was found here, https://stackoverflow.com/questions/10014807/batch-convert-mac-iwork-files-to-pdf-on-the-command-line.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .