Good morning,
is there any chance removing all quotes from a textfile using the switch script element?
I´ve found a script part already but it is just removing the first quotes of the first line of a file.
var extension = s.getPropertyValue("Extension");
var tempFile = job.createPathWithExtension(extension);
var myFile = new File(tempFile);
var InputPath = job.getPath();
var inputFileText = File.read(InputPath);
var outputFileText = inputFileText.replace('"','');
myFile.open( File.WriteOnly | File.Truncate );
myFile.write(outputFileText);
myFile.close();
job.sendToSingle(tempFile);
job.sendToNull(InputPath);
...but i want to get removed all of them in a multiline document.
greetings.
Last edited by trach on Wed Nov 20, 2019 9:55 am, edited 1 time in total.