Skip to content

Instantly share code, notes, and snippets.

@Trevor-
Last active September 21, 2018 06:11
Show Gist options
  • Save Trevor-/a297b25e270c2e19d3ba12b5406212d9 to your computer and use it in GitHub Desktop.
Save Trevor-/a297b25e270c2e19d3ba12b5406212d9 to your computer and use it in GitHub Desktop.
Demo for running remote scripts on InDesign. Shares vars and arguments with "local" script. See 1st comment for link to "local" script.
var testVar = "Trevor - http://creative-scripts.com";
var scriptArg1 = app.scriptArgs.getValue("scriptArg1");
var envVar1 = $.getenv("envVar1");
function blah(bar, baz){
var result = bar + " " + baz;
alert(result);
return result;
}
blah(scriptArg1, envVar1);
@Trevor-
Copy link
Author

Trevor- commented Sep 21, 2018

This is the remote script for InDesign.
The "local" script for Mac / Windows is here
See the annotations there for adapting as per needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment