Hello,
I'm trying to edit an exported title file from PPro. The editing is working but when I import the file back into PPro, PPro crashes.
I've tried writing the file as UTF8 and UTF16. Both crash PPro. Any ideas?
thanks,
Kelly
Here's my code:
##########################################
var tapeType = "<TRString>TAPE TYPE</TRString>";
var theFile = File("/Users/ops.kanderson/Desktop/OnAir Slate.prtl");
theFile.open ("r");
var theText = theFile.read();
theFile.close();
theText = theText.replace (tapeType, "<TRString>GENERIC MASTER</TRString>");
var outFileName = 'kellySlateText1' + '.prtl';
var completeOutputPath = "/Users/ops.kanderson/Desktop/" + outFileName;
var outFile = new File(completeOutputPath);
if (outFile){
outFile.encoding = "UTF8"; OR outFile.encoding = "UTF16";
outFile.open("w", "TEXT", "????");
outFile.write(theText);
outFile.close();
}
##########################################