tellmyDocument
setmyPitemsto (everytext pathofeverypage itemofeverypage) whosecontents = ""
repeatwithPiteminmyPitems
display dialog "got it"
deletePitem's parent
endrepeat
endtell
This is a working script - as long as there is nothing grouped in the document. (Took a while to figure out why it was throwing an error!) None of the text paths I need are grouped, incidentally.
I am deleting all objects that have "text on a path" set up but no text on them.
What am I doing wrong? Do I need to ungroup everything first? Is there an easy way to temporarily ungroup everything?
Thank you!