Applescript newbie here.
I am trying to write a script that will tell me if there are any tables in any of the stories in a document.
What would be the best way to go about this?
I can find all the text elements on the page but don't know how to drill down into the text to find the tables, if they exist.
Ultimately, I want to display a dialog that would say "there are tables on page x, y, and z" or "there are no tables in this document"
Any help would be appreciated!
If you want a page-based list, you can try looping through the pages using something like this:
every table of every item of all page items of page i whose class is text frame
It'll probably error where there are none.
Thanks for replying! I haven't had a chance to play with this yet...been pulled onto other projects.