Article View: adobe.scripting.indesign
Article #19075Re: Scripts that fail from Palette
From: Olav Kvern
Date: Thu, 23 Jan 2003 06:50
Date: Thu, 23 Jan 2003 06:50
27 lines
1659 bytes
1659 bytes
Dave-- I actually can't get your example to work--from the palette or from SD. I'm guessing that it's that the "split" method requires an argument--it does for me, anyway. This one seems to do what I think you're trying to do, and does it from the palette or from SD. --Assumes you have a text frame selected, and that that --text frame contains a story with at least one table tell application "InDesign 2.0.1" set myTextFrame to item 1 of selection set myTable to table 1 of parent story of myTextFrame repeat with myRowCounter from 1 to (count rows of myTable) --Iterate backwards to avoid repetitively splitting a single cell. repeat with myColumnCounter from (count columns of myTable) to 1 by -1 split cell myColumnCounter of row myRowCounter of myTable using vertical end repeat end repeat end tell Thanks, Ole
Technical Details
Message-ID:
<1de76d0e.8@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de76d0e.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,50cdc56b84d3d053 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-01-22 23:07:31 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Scripts that fail from Palette Message-ID: <1de76d0e.8@WebX.la2eafNXanI> Date: Wed, 22 Jan 2003 22:50:15 -0800 References: <1de76d0e.-1@WebX.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit