
But I have some problems with the code below:
function jobArrived( s : Switch, job : Job )
{
var InputPath = job.getPath();
var extension = s.getPropertyValue("Extension");
var tempFile = job.createPathWithExtension(extension);
// var tempFile = new File(s.createPathWithName(job.getNameProper()+".mrg"));
The var extension gets an "Undefined" string as the file extension, at the moment I'm fixing that with a Rename element.
The commented line that should take the NameProper and ad .mrg doesn't work for me. I get errors that it can't open the file.
So there are two ways here.
Were do I get the value from "getPropertyValue" from? or how do we fix the getNameProper?
Thanks
Jan