Answered
Unable to edit the Type Tool text using ExtendScript
Hi All,
Any idea how to edit the text of "Type Tool" using ExtendScript?

I tried to modify the text using below script but it is making the clip empty(removing the existing text).
for(var a = 0; a < app.project.sequences[0].videoTracks.length; a++)
{
var videoTracks = app.project.sequences[0].videoTracks[a];
for(var b=0; b< app.project.sequences[0].videoTracks[a].clips.length; b++)
{
var clip = app.project.sequences[0].videoTracks[a].clips[b];
$.writeln(clip.name);
for(var c=0; c < app.project.sequences[0].videoTracks[a].clips[b].components.length; c++)
{
var component = app.project.sequences[0].videoTracks[a].clips[b].components[c];
for(var d=0; d < app.project.sequences[0].videoTracks[a].clips[b].components[c].properties.length; d++)
{
var prop = app.project.sequences[0].videoTracks[a].clips[b].components[c].properties[d];
//$.writeln(prop.displayName + " = " + prop.getValue());
if(clip.name == 'Graphic')
{
$.writeln(prop.displayName);
}
if(prop.displayName == 'Source Text')
{
$.writeln(prop.displayName);
}
}
}
}
}
