Skip to main content
Participant
July 17, 2013
Question

Scripting Batch PDF Export Using Alternate Layouts in CS6

  • July 17, 2013
  • 1 reply
  • 687 views

Hi everybody,

I have about 300 different inDesign files that I need to export to PDF so I'm looking for a way to automate this process. I've seen various scripts, programs, and Automator workflows that appear to do this but nothing that takes advatage of CS6's Alternate Layout functionality. My problem is that each of these documents have at least 2 layouts and I only want to export 1 of them. Would it be complicated to a write an AppleScript droplet that could do this? I appreciate all the help.

Best,

Chris

This topic has been closed for replies.

1 reply

Participant
July 23, 2013

So I've figured out how to do what I want with the currently open document:

tell application "Adobe InDesign CS6"

          tell PDF export preferences

                    set page range to "Small"

          end tell

          tell application "Adobe InDesign CS6"

                    tell active document

                              export format PDF type to "Macintosh HD:Users:ckier:Desktop:Case Study Convert:PDF:test.pdf" without showing options

                    end tell

          end tell

end tell

This script will only export the layout named "Small"of the currently open document. Now I need to make this into a droplet so that it will run this script against the file dropped on it. Or conversely I'd like to make it do this to an entire folder of files. I'll have to make use of a variable so that it uses the filename of the original file for the output. Any ideas?

Thanks,

Chris