InDesign CS4 Data Merge JavaScript Creation

  • Posted
  • Proposals 0
  • Remote
  • #7883
  • Expired
  • 0

Description

Experience Level: Expert
Adobe InDesign CS4 Scripting Phase I.

Project Goal:
The project goal will be to create a JavaScript script that will be utilized within an Adobe InDesign CS4 Document.

The goal of the work being done with InDesign is to utilize the Data Merge functionality of InDesign and the, already available, ability to create a new document per record in your data source.

The JavaScript work that is being requested is to write a script that will modify each documents name based on data contained in the data merge.

A very simple example of this would be the following:


EXAMPLE
======================
Given the following data source in excel:

First_Name Last_Name ResultingFileName
George Smith c:\\A45.pdf
Mary Lopez c:\\C99.pdf
Steve Barns c:\\tmp\\XM96TR.pdf

Along with a simple two text box InDesign documents, I would perform a standard data merge with First_Name linked to one text box and Last_Name linked to another. By setting the “Record Limits Per Document” to 1, I would end up with three different documents. By default, the documents would be named Untiltled-1, Untiltled-2 and Untitled-3.

Untitled-1 would contain George and Smith. Untitled-2 would contain Mary and Lopez and Untitled-3 would contain Steve and Barns.

At this point in time, I would run the new created script, which would do the following:

Rename Untitled-1 to A45 and/or save Untitled-1 as C:\\A45.pdf
Rename Untitled-2 to C99 and/or save Untitled-2 as C:\\C99.pdf
Rename Untitled-3 to XM96TR and/or save Untitled-3 as c:\\tmp\\XM96TR.pdf

I am open to modifying the manner in which the data merge source is created. For example, separating the path and the file name into separate columns. In addition, I am flexible in putting preset information and/or file save types into the data merge document.

Thanks in advance for the help.

Matt


Adobe InDesign CS4 Scripting Phase II.

Phase II of this same project would be to extend the script to include the ability to list 4 CMYK color values for each text box and then to have the Javascript change the base colors of the text in the box based on the CMYK color values that were data merged.

Clarification Board

    There are no clarification messages.