Skip navigation
Olivier.Berquin
Currently Being Moderated

[AS-CS5] Copy contents of a cell, paste into another

May 25, 2012 7:41 AM

Hello everyone,

 

I would like to copy the contents of a cell (which is an anchored object) and paste it to several other cells via AppleScript.

I have no idea where to start.

 

I have to create an array of several hundred row. The first cell of odd (odd cell?) row must contain the anchored object.

 

Thank you

 

Oli.

 
Replies
  • Currently Being Moderated
    May 25, 2012 5:40 PM   in reply to Olivier.Berquin

    This assumes no header or footer rows, but it should get you started:

     

    tell application id "com.adobe.InDesign"

              tell table 1 of selection

                        set rowCount to body row count

                        repeat with i from 2 to rowCount

                                  duplicate text 1 of cell 1 of row 1 to end of text 1 of cell 1 of row i

                                  contents of cell 1 of row i

                        end repeat

              end tell

    end tell


     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points