Copy link to clipboard
Copied
Enter < 0016 > or < 0017 > under the searched text to find the table. What is this high-tech?
This is true. A friend asked me, and I tried.
But I was very confused and didn't know why.
Is this a regular expression?
Where can I learn more relevant knowledge?
Thank you.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi @dublove ,
it's easier as you might think.
Select the character that constitutes a table. You'll get that best in the Story Editor Window.
Sample 1, a table with 1 body row: 0016 is shown in the Info panel.
Sample 2, a table with 2 body rows: 0016 0017 is shown.
Sample 3, a table with 3 body rows: 0016 0017 0017 is shown.
Now try this with a couple of tables in your document. Text Find pattern:
<0016><0017><0017>
Result: You will not find tables with 1 or 2 body rows.
But you will find tables with 3 and more body rows.
So technically spoken, I'm speculating here a bit, you'll find the first three body rows of every table in the document.
Another note on the number of rows you can detect with a combination of <0016> and <0017> with Text Find: Header rows do not count, footer rows do not count!
That means:
<0016><0017>
will also find this table where we see 1 header row, 1 footer row and 2 body rows:
And of course, with that pattern you will find tables with more than 2 body rows as well, regardless of the number of body rows and footer rows.
Regards,
Uwe Laubender
( Adobe Community Professional )
Copy link to clipboard
Copied
Not sure I understand why you would <0016> and/or <0017> to get to tables. Why not use myDoc.stories.everyItem().tables.everyItem().getElements() ? Then loop through the array of tables and get their row counts. That way it's easy to target tables with e.g. more than three rows. Or fewer than ten rows. Or whatever.
Copy link to clipboard
Copied
Hi Peter,
that would catch also nested tables in text cells and also tables in footnote texts.
What's more? Doing this in TEXT Find will navigate you to tables using the GUI without any scripting. Could be handy if you have a very large document with some tables you want to visit in the layout.
Regards,
Uwe Laubender
( Adobe Community Professional )