Article View: adobe.scripting.indesign
Article #8955How to put a paragraph into a 1 by 1 table
From: Ariel Walden
Date: Thu, 21 Sep 2006 19:39
Date: Thu, 21 Sep 2006 19:39
35 lines
2325 bytes
2325 bytes
Hello, I wonder if anyone could help me with the following task: I'm working with a very large document (700+) pages. There are about 300 instances of a paragraph which needs to have a border put around it. The paragraph is of varying length. As far as I know, there is no way to put a border round a paragraph in InDesign directly. There are settings for rule above and below, but not on the sides. The workaround that I think will be simplest is to put each of these paragraphs in its own 1x1 table. That way, the paragraph remains as part of the regular text-flow. All the paragraphs in question have a style applied to them which is called "HRBox". It would be extremely helpful and kind if someone could figure out how to write a script that finds all paragraphs styled "HRBox", puts each one into its own table (I will set up the default table preferences to match exactly what I need; so the paragraph need only be placed in a default table; this might make things simpler), and then erase the original paragraph. I could probably program such script myself in Word using VB, because you can make a macro of a single instance and see what commands need to be used, etc. But in InDesign, where you have to start from scratch, I don't really know where to begin. Ideally, the script would be in VB, because I'm familiar with that from Word; and the software is IDCS2. Any help is warmly appreciated, Thanks Ariel
Technical Details
Message-ID:
<58B49DDE8CFB764A53E11E78EDD2D04C@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,82604a7f44cea2dd,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ariel Walden" <tarielw@gmail.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: How to put a paragraph into a 1 by 1 table Message-ID: <58B49DDE8CFB764A53E11E78EDD2D04C@in.webcrossing.la2eafNXanI> Date: Thu, 21 Sep 2006 12:39:55 -0700 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit