In my script, I need to go to a table on the current InDesign page and access the info inside of it by just copying the text of the entire table. I know there must be some supremely easy way to do this, but how? The cells within the table all use the same paragraph style, and the text frame the table sits in has a label. Do I search for the para style, then somehow refer to its parent or something?
The tricky bit for me seems to be telling my script to find the tabel on the page and selecting it, since once I can do that I assume I can just change the table to text to get to all that data.
I'm using Applescript in InDesign CS3. Thanks.
Could you just use the simple find change applescript without concern?
If the text frame is labelled "Blah", you can get the table with:
table 1 of text frame "Blah"
if you ask for:
contents of table 1 of text frame "Blah"
You will get a list of the contents that appears in every cell.
I could have sworn I tried "set temp to contents of table 1 of text frame 'Blah'" and it didn't work, but I just did it again and it works. Thanks everyone.