0 Replies Latest reply on Jul 10, 2015 1:36 PM by edwinm26891140

    Export PDFs without .indd extentions

    edwinm26891140

      --ExportPDFWithPreset.applescript

      --An InDesign CS5 AppleScript

      --

      --Shows how to set PDF export options before exporting.

      main()

      on main()

        mySetup()

        mySnippet()

        myTeardown()

      end main

      on mySetup()

        --Creates a new document.

        tell application "Adobe InDesign CC 2014"

        set DocumentName to name of front document as string

        end tell

      end mySetup

      on mySnippet()

        tell application "Adobe InDesign CC 2014"

        set myDocument to active document

        set DocumentName to name of front document as string

        --<fragment>

        --Given a document "myDocument," export a PDF to the projFolder.

        set projFolder to file path of myDocument as string

        set myFile to projFolder & DocumentName & "_Web.pdf"

        set myPreset to "EFI-WEB with hyperlinks"

        tell myDocument

        export format PDF type to myFile using myPreset without showing options

        end tell

        --</fragment>

        end tell

        tell application "Adobe InDesign CC 2014"

        set myDocument to active document

        --<fragment>

        --Given a document "myDocument," export a PDF to the projFolder.

        set projFolder to file path of myDocument as string

        set myFile to projFolder & DocumentName & "_Prod.pdf"

        set myPreset to "EFI-Production"

        tell myDocument

        export format PDF type to myFile using myPreset without showing options

        end tell

        --</fragment>

        end tell

        tell application "Adobe InDesign CC 2014"

        set myDocument to active document

        --<fragment>

        --Given a document "myDocument," export a PDF to the projFolder.

        set projFolder to file path of myDocument as string

        set myFile to projFolder & DocumentName & "_Print.pdf"

        set myPreset to "EFI-Print"

        tell myDocument

        export format PDF type to myFile using myPreset without showing options

        end tell

        --</fragment>

        end tell

      end mySnippet

      on myTeardown()

      end myTeardown