Hi Franke,
Try the below code, may it will helpful:
var myDoc = app.activeDocument
//var myCell = app.activeDocument.textFrames.everyItem().tables.everyItem().cells.ev eryItem().getElements()
app.findTextPreferences = app.changeTextPreferences = null
app.findTextPreferences.findWhat = "Apple"
var myFound = myDoc.findText()
for(i=0; i<myFound.length; i++)
{
if(myFound[i].parent.constructor.name == "Cell")
{
myFound[i].parent.fillColor = "aaa"
}
}
If the above code helps you, then please give Helpful or Correct Answers.
Because for the last 3 months only I started my Indesign Scripting Career.
With the help of Forum legends I can able to reply for simple questions.
Thanks all...
Regards
BEGINNER