Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Those pages are in what format? What have you tried so far? – Doktoro Reichard Dec 20 '13 at 22:23
Check out this script by Yvan Koenig – Raystafarian Dec 21 '13 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 '13 at 11:30
Can you upload them to google drive and have google print as pdf, batch style? – Raystafarian Dec 26 '13 at 19:45

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,

share|improve this answer

You must log in to answer this question.

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