1 Reply Latest reply on May 5, 2014 7:50 AM by jcktxt

    InDesign Workflow for DPS

    jcktxt

      I've been working on this project for a while now and I wonder if anyone has any ideas or can point me to some resources about how to set up this script.

       

      I recieve PDFs and I want to convert them to PNGs (using Photoshop) and then place them in an InDesign document. This is how I ideally see it happening.

       

      I drag the PDF onto a app and the script creates a folder structure based on the file name.

       

      filename_stack

      - links

      - original

       

      Takes the PDF and convert it to a PNG, using Photoshop CS5 (in RGB, at 300 dpi)

      Save the PNG as filename.png

      Moves the PDF to "original" folder

      Moves the PNG to "links" folder

       

      Creates an InDesign document (746 px by 1024 px, for web use)

      Places the PNG in the document, centered in frame that is 746 x 1024, with the picture at 130%

       

      Saves the InDesign document in the "filename_stack" folder with the name "filename_v.indd"

        • 1. Re: InDesign Workflow for DPS
          jcktxt Level 1

          I've actually made a lot of progress so far using applescript.

           

          I have a script that makes all of the basic folders and moves the file into the right folder. Now on to having InDesign create a new document and place the file.

           

          Here is what I have so far:

           

          on open mgItems

            repeat with mgItem in mgItems

            tell application "Finder"

            set mgName to name of mgItem

            set mgExtension to name extension of mgItem

            set the mgFolderPath to (the container of mgItem) as text

           

            set text item delimiters of AppleScript to {"."}

            set mgNewName to text item 1 of mgName

            set text item delimiters of AppleScript to {"_"}

            set mgNewName to text item 1 of mgNewName

            set text item delimiters of AppleScript to ""

            set stackName to "_stack"

           

            try

            set mgFinalFolder to mgFolderPath & mgNewName & ":" as alias

            on error

            set mgFinalFolder to make folder at mgFolderPath with properties {name:mgNewName & (stackName)}

            end try

           

            set folder1 to make new folder at mgFinalFolder with properties {name:"original"}

            set folder2 to make new folder at mgFinalFolder with properties {name:"links"}

           

            move mgItem to mgFinalFolder

            move mgItem to folder2

           

            set the templateFile to "Macintosh HD:Users:jcavicchi:Desktop:scriptopia:donotmove.indd"

            set templateRename to duplicate templateFile to mgFinalFolder

            set extentionName to "_v.indd"

            set name of templateRename to mgNewName & (extentionName)

           

            end tell

            end repeat

          end open