Article View: adobe.scripting.indesign
Article #17130Re: [VB] Placing groups into text boxes
From: Dave Saunders
Date: Mon, 07 Jul 2003 18:57
Date: Mon, 07 Jul 2003 18:57
15 lines
1933 bytes
1933 bytes
I can't give you the VB syntax because I'm a Mac user, but the basic technique would be the same as you do in the UI: 1. Designate the story that is to contain the groups (I usually require the user to have the insertion point in the story in question when the script is run, but you could also give the story a Script Label usign the palette). 2. Now for each group your script should assemble the group as a freestanding element on the page. When it's complete, use Cut to get it to the clipboard, then select the last insertion point of your story and paste. 3. Insert a return at the last insertion point of the story and repeat. OK, this will fail if you haven't already autoflowed the story. But that's chicken and egg because you don't know how long the story is until you finish. You might consider assembling the groups in reverse order. Start with the last and put it at the start of the story. Then insert a return before at the first insertion point and then put the next to last group there, etc. This way, as each group is added, the ones at the end will be overset and when you finish the script you can either manually autoflow the whole thing or have your script do it. Dave
Technical Details
Message-ID:
<1de9cb86.4@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9cb86.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,71b02edf67e48d56 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-07 12:07:51 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [VB] Placing groups into text boxes Message-ID: <1de9cb86.4@WebX.la2eafNXanI> Date: Mon, 7 Jul 2003 11:57:47 -0700 References: <1de9cb86.-1@WebX.la2eafNXanI> Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit