GithubHelp home page GithubHelp logo

qxpjs / mail-merge Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 1.7 MB

This script finds the master page and creates as many pages with that master page as the number of records in a VALID csv file and creates documents by importing csv data. Each page of the document contains data corresponding to a tuple in the csv file.

License: MIT License

JavaScript 100.00%
quarkxpress javascript mailmerge csv qx2018-sample csv-data

mail-merge's Introduction

QuarkXPress 2018 logo

Mail merge

This JavaScript needs to be installed in QuarkXPress 2018. Feel free to modify this script to your own needs.
Please see here on how to install: Installation Instructions

What it does

This script uses a pre-fabricated page and uses it as a template to create as many pages as the number of records found in a VALID csv file.

Prerequisites

  • You need to create a document that can be used as a "template"
  • The text and images to import data must be on the master page and not on the first page
  • The text to be imported must be enclosed in braces as <> and the tag name is the data of first tuple of the csv
  • You need a csv (comma separated values) file containing your data
  • The csv needs to be valid i.e. the CSV data must not contain the separator character
  • The separator must be defined in the first line of csv file else the default separator will be taken as comma
  • Images will be referenced by paths (relative or absolute)

Notes

This sample ships with QuarkXPress 2018

Screenshots

Step 1: Create Template (qxp file):
QuarkXPress document
Step 2: Provide data (here: csv file with 3 records):
CSV file
Step 3: Run script and get final document, ready to export as PDF (here: with 3 pages):
Final layout
Video:
Video showing Mail Merge in QuarkXPress

Version History

May 2018: Original version as supplied with QuarkXPress 2018

How to install

  1. On the GitHub page, download the ZIP by clicking on the green button "Clone or download"
    Step 1
  2. In the popout menu click on "Download ZIP"
    Step 2
  3. Save to your Desktop
  4. Unzip (so that you get a folder)
  5. Copy the resulting folder to the js folder in your documents folder (see below)
  6. In QuarkXPress open the "JavaScript" palette
    (via "Window" menu)
  7. If you do not see a folder with the name of this JavaScript, click on the little "Home" ("House") symbol.
    Step 7
Step 5: On MacOS copy to Step 5: On Windows copy to
~/Documents/Quark/QuarkXPress 2018/js/ Documents\Quark\QuarkXPress 2018\js\
(so into your "Documents" folder) (so into your "Documents" folder)

Run the JavaScript by first double clicking the folder; and then double clicking the Script itself (in the JavaScript palette of QuarkXPress).

More Information

More information on QuarkXPress and how to use JavaScript in QuarkXPress can be found here:
http://www.quark.com/Support/Documentation/QuarkXPress/

mail-merge's People

Contributors

aussenalster avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mail-merge's Issues

Multi-page documents

Hello,

Can this script be used with multi-page documents?

Suppose we have a letter that has two or more pages long...

I would like to use this to merge addresses with a multi-page self-mailing brochure.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.