Hi There,
I’ve written a script for applying a style to a table and reformatting certain elements that can’t be applied with a pre-defined table style.
The script works ok however, I’ve had to a little workround for copying the contents from the 1st row of one table and pasting it into another.
Here’s the workround:-
tell row 1 of table 1 of text frame "icons"
select
tell application "System Events"
keystroke "c" using {command down}
end tell
end tell
tell mySelection
select row 1
tell application "System Events"
keystroke "v" using {command down}
end tell
end tell
(mySelection is a reference to the table the user highlights before running the script)
I tried numerous ways to get the contents of the 1st row of one table, and populate the 1st row of another, but no luck.
The items I’m trying to copy are anchored boxes containing icons.
The hack above works but I’d still like to find a nice way to do it in InDesign.
Thanks in advance.
Regards,
Nick