Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all articles
Browse latest Browse all 53010

Editing a Title (.prtl) file

$
0
0

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();

}

##########################################


Viewing all articles
Browse latest Browse all 53010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>