Script to find and select all text in a particular frame and set Grid Alignment to NONE
Hi everyone,
I'm working on some documents that cotain text frames aligned to baseline grid where they are not supposed to be. They all have a specific fill color applied ("Akane red"). I managed to create a script which find and select all the text in the frame, but I'm stuck on the "Grid Alignment" part. The selected text should not be aligned to baseline grip. Could you please help me? Here's my code:
var doc = app.activeDocument;
var myDoc = app.activeDocument;
app.findObjectPreferences = null;
app.findObjectPreferences.fillColor = "Akane red";
var found = doc.findObject();
for(var i =0;i<found.length;i++)
{
try{
found[i].select();
}catch(e){}
}
app.findObjectPreferences = null;
try {
app.selection[0].texts[0].select();
} catch (_)
{
}
Thanks in advance,
Rogerio
