Last active
September 21, 2018 06:11
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the remote script for InDesign.
The "local" script for Mac / Windows is here
See the annotations there for adapting as per needs.