1.0.4 • Published 6 years ago

async-indesign-script v1.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

async-indesign-script

Talk to InDesign from node and get a callback. Mac only.

Quickstart

const path = require('path');
const InDesign = require('async-indesign-script');

const id = new InDesign({
    version: 'CC 2018'
});
id.run(path.join(__dirname, 'example.jsx'), {
    message: 'hi from node'
}, function(res) {
    console.log(res);
});

adobe jsx-script file

//@include async-indesign-script/src/jsx/NodeResponder.jsx

alert(data);

/**
 * Synchronous code...
 */

var responder = new NodeResponder();

/**
 * Tell node we're finished.
 */
responder.emit({
    message: 'YOUR DATA'
});
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago