Skip to content
REST InDesign Exchange or connect InDesign to the secure Web
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Initial commit Apr 4, 2018
.gitignore ignore proxy version Jan 2, 2019
LICENSE Initial commit Mar 20, 2018
readme.md add press2id link Apr 11, 2018
restix.jsx win10 drops msxml3 support Feb 20, 2019

readme.md

Connect InDesign to the web

  • HTTPS supported
  • Works form CS4 to CC 2018 (ExtendScript based library)
  • Based on VBScript/ServerXMLHTTP (Win) AppleScript/curl (Mac) relies on app.doScript()

Getting started

See examples/connect.jsx

var request = {
	url:"String",
	command:"String", // defaults to ""
	port:443, // defaults to ""
	method:"GET|POST", // defaults to GET
	headers:[{name:"String", value:"String"}], // defaults to []
	body:"" // defaults to ""
}

var response = restix.fetch(request);

if (response.error) {
	$.writeln("Response Error: " + response.error);
	$.writeln("Response errorMsg: " + response.errorMsg);
}
$.writeln("Response HTTP Status: " + response.httpStatus);
$.writeln("Response Body: " + response.body);

A working Example

request = {
	url:"https://jsonplaceholder.typicode.com",
	command:"posts/1", 
}
var response = restix.fetch(request);
$.writeln("Response Body: " + response.body);

Fully working example with Wordpress

See press2id for a InDesign to Wordpress connection via REST.

Add more REST Tools

  • soon
You can’t perform that action at this time.