1 Reply Latest reply on Jul 23, 2013 2:05 PM by ckiernan1008

    Scripting Batch PDF Export Using Alternate Layouts in CS6

    ckiernan1008

      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

        • 1. Re: Scripting Batch PDF Export Using Alternate Layouts in CS6
          ckiernan1008 Level 1

          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