originally i called the second script through: function s2t(s) {return stringIDToTypeID(s)}
function t2s(t) {return typeIDToStringID(t)}
var pth = new File ("e:/_Output/test.jsx")
var desc = new ActionDescriptor()
desc.putPath( s2t ("javaScript"), pth)
desc.putString( s2t("javaScriptMessage"), "tried to put variables, objects, functions here" )
executeAction(s2t( "AdobeScriptAutomation Scripts" ), desc) i need to pass a number of parameters: integer, strings, booleans and an array of objects that describe the set of actions, for example structure of settings object: function initObj (s)
{
s.autoStart = true
s.allowContinue = true
s.saveMode = 0
s.lastSavePath = ""
s.fileFormat = 0
s.flatten = false
s.jpgQuality = 12
s.override = false
s.options = []
s.doneCounter = -1
s.continue = 0
} where s.options are: [{active:true, set:"test set", action:"test action 1", stop: false}, {active:false, set:"test set", action:"test action 2", stop: true}, {active:true, set:"test set", action:"test action 3", stop: false}] on advice JJMack now I call the script through executeAction (runtimeEventID, desc) (accordingly, I pre-generated a unique runtimeEventID, in desc I put ActionDescriptor into which I write all the variables beforehand (for ease of processing, I convert the s.options array to a string) - accordingly, in the header of the script that is running, each variable is also declared and there is a corresponding settings object in the script body. A little cumbersome, but quite functional)
... View more