I have a document - 120 pages - with lots of lots of text frames consisting of tables.
All these tables consist of 7 columns, and I need this column to be deleted on about 50% of the tables.
I’ve tried to write a script to do this, but ran into trouble…
What I want is to select the table inside the text frame, and then run this script:
tell application "Adobe InDesign CS3"
set myTable to selection
tell myTable
delete column 7
end tell
end tell
I keep getting the error: “Can get column 7 of {table id XXX of text frame id XXX of page id XXX …}” and so on…
If i try testing with a blank document consisting of only 1 text frame I use this script with success:
tell application "Adobe InDesign CS3"
tell active document
set myTable to text frame 1
tell table 1 of myTable
delete column 7
end tell
end tell
end tell
So… What to do, what to do?