• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting InDesign Tables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Scripting InDesign Tables (From: Ed Stockly <email@hidden>)

  • Prev by Date: osascript and *.command files
  • Next by Date: Re: How can I use "if keyboard.OptionKey is down then" ?
  • Previous by thread: Re: Scripting InDesign Tables
  • Next by thread: [OT] my e-mail address changes
  • Index(es):
    • Date
    • Thread