Select parent of selected text
Hi All,
Im trying to select textframes indivudually and then bring up a dialog to see if the user wants to move the text parent to another layer. No problem for text frames but I can't get it to work for text on a path.
Any ideas of what I'm doing wrong?
Many Thanks, Bren
var myDoc = app.activeDocument;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = ".*" // select text
var myFound = myDoc.findGrep(); for(obsty=0; obsty<myFound.length; obsty++)
{ myFound[obsty].parentTextFrames[0].select(), alert("Parent Selected")} // select parent