Re: Scripting InDesign Tables
Re: Scripting InDesign Tables
- Subject: Re: Scripting InDesign Tables
- From: Shane Stanley <email@hidden>
- Date: Sun, 07 Oct 2007 20:32:43 +1000
- Thread-topic: Scripting InDesign Tables
On 7/10/07 5:46 AM, "Ed Stockly" <email@hidden> wrote:
> parent row, parent column and parent all seemed like they should work
> and they do provide some sort of reference, but not one I can use in
> a later command.
>
> set thisRow to the object reference of the parent row of myCell
You're asking for the object reference of something that is already
returning an object reference, so:
tell application "Adobe InDesign CS3"
set myCell to item 1 of selection
set thisRow to parent row of myCell
> count count lines of cells of row x
count lines of cells of thisRow
>
> set myColumn to the parent column of myCell
> set myLabel to contents of cell 2 of myColumn
They work fine.
>
> set myTable to table 1 of myCell
Table 1 of a cell is the first table _inside_ the cell; what I suspect
you're after is the table the cell belongs to:
set myTable to parent of myCell
> set myRows to every Row of myTable
That's fine (with a lower case "row").
>
> Those are the kinds of commands I need to make work.
--
Shane Stanley <email@hidden>
AppleScript Pro Florida, Feb 2008 <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden