Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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

1 Answer 1

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, http://stackoverflow.com/questions/10014807/batch-convert-mac-iwork-files-to-pdf-on-the-command-line.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.