Old code
Code: Select all
var colorRotate = job.getVariableAsString( "[Stats.Colorants]" );
var basePath = "\\\\FILE01-MB\\Fælles\\Grafiske Brugere\\Pitstop Action Lists\\Kunderelaterede\\0-9\\2care4_75152900\\Packagingflow\\";
switch (true) {
case (colorRotate.indexOf('EMANAT-0') >= 0):
actionlist = 'EMANAT-01 - Set art box and place HTML-0°.eal';
break;
case (colorRotate.indexOf('EMANAT-90') >= 0):
actionlist = 'EMANAT-01 - Set art box and place HTML-90°.eal';
break;
}
var actionlistPath = basePath + actionlist;
actionlistPath
It seems I can get Private Data, but this is not private data.
And it also could be I will solve this with a Pitstop Profile, where I use a variable set to toggle the action lists on and off.
But it would be a good exercise to convert it to node.JS for me.