Removing empty textboxes
Please help me making my work more efficient.
For my work i have to create display cards with text and prices. Therefore i use data merging, but after data merging there are more than 100 pages.
I would love to know if theres a simple step to remove empty text boxes, because not every display card needs a blue textbox, only the ones that are filled with text.
And does someone knows how to automaticaly create the right wright of these boxes after of among data merging?
Thanks so much. I will upload some pictures so u can see what i mean.
Kind regards
**Update
Thank you all for your help and answers! I used this script and this works excellent 🙂
var myStories = app.activeDocument.stories.everyItem().getElements();
for (i = myStories.length - 1; i >= 0; i--){
var myTextFrames = myStories[i].textContainers;
for (j = myTextFrames.length - 1; j >= 0; j--) {
if ((myTextFrames[j].contents == "") || (myTextFrames[j].words.length == 0)){
myTextFrames[j].remove();
}
}
}
