I would like to use AppleScript for associating Switch Client User to a job. The JavaScript looks like following code:
Code: Select all
function jobArrived( s : Switch, job : Job )
{
// Get the value of the username property
var theUserName = job.getVariableAsString('[Metadata.Text:Path="/Root/Usr",Dataset="Upload-XML",Model="XML"]');
// And set that as username in the job ticket
job.setUserName(theUserName);
// End by moving the job to the next step
job.sendToSingle( job.getPath() );
}
Code: Select all
job.setUserName(theUserName);
Regards, Sjoerd