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
//////////////////////////////////////////////////////////////////////////////////////// | |
// For InDesign but can easily be adapter for some other apps // | |
// Show methods of sharing vars etc. between local and remote scripts // | |
// By Trevor http://creative-scripts.com 21 Sep 18 // | |
// This is the "remote" script // | |
// The "local" is at https://gist.github.com/Trevor-/a5de06d41e28936ad72fe3e348bddd33 // | |
//////////////////////////////////////////////////////////////////////////////////////// | |
// "aVarFromLocalToRemote" is set in the "local" script | |
alert("Got " + aVarFromLocalToRemote); |
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
//////////////////////////////////////////////////////////// | |
// For InDesign Windows !!!!! // | |
// See https://forums.adobe.com/message/10632451#10632451 // | |
// By Trevor http://creative-scripts.com 21 Sep 18 // | |
//////////////////////////////////////////////////////////// | |
// https://gist.github.com/Trevor-/a5de06d41e28936ad72fe3e348bddd33 | |
var remoteCodeUrl, vbs, appleScript, remoteScript; |
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
//////////////////////////////////////////////////////////// | |
// For InDesign Windows !!!!! // | |
// See https://forums.adobe.com/message/10632451#10632451 // | |
// By Trevor http://creative-scripts.com // | |
//////////////////////////////////////////////////////////// | |
var remoteCodeUrl, vbs, appleScript, remoteScript; | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
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
// See https://forums.adobe.com/message/10632458#10632458 | |
if (app.name !== 'Adobe Photoshop') { | |
alert('Crash,for Adobe Photoshop only!'); | |
} | |
var remoteCode = 'https://gist.githubusercontent.com/Trevor-/6a02d8cb49bbfeb9822f061dea300bc1/raw'; | |
// this function is nicked from // https: //forums.adobe.com/thread/2364797 | |
function getSystemCommandStdout(command) { | |
var stdout = ""; |
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 = "foo"; | |
var envVar1 = $.getenv("envVar1"); | |
var envVar2 = $.getenv("envVar2"); | |
function blah(bar, baz){ | |
var result = bar + " " + baz; | |
alert(result); | |
return result; | |
} | |
blah(envVar1, envVar2); | |
// See https://forums.adobe.com/message/10632451#10632451 |
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); |
NewerOlder