🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8873

Re: How to put a paragraph into a 1 by 1 table

#8873
From: Ariel Walden
Date: Fri, 22 Sep 2006 00:58
27 lines
2215 bytes
Ok, I'm trying to follow this script, and here are the questions I don't
understand:

(1) What is the difference between Set and Let (which is what I'm familiar
with from BASIC). Can I get rid of it, like you could with Let?
(2) What is this constant: idNothingEnum.idNothing?
(3) "Set myFoundItems = myDocument.Search()". This is a key line, because it
collects all the paragraphs. But what kind of a variable is myFoundItems? An
array? And how come you don't have to write something like this: FOR A  = 1
TO 100: MYFOUNDITEMS (A) = MYDOCUMENT.SEARCH(A): NEXT
(4) Why do you have to state: MyFoundItem =
myfounditems.Item(myCounter)...wouldn't it be enough to write myFoundItem =
myFoundItems(myCounter) ?
(5) I take it Item(-1) means start from the end. ie (-5) is five from the
end, etc.?
(6) "Set myTable = myText.Item(1).ConvertToTable". This line really puzzles
me. It doesn't seem to me to DO anything. It just creates a variable that
contains a table containing myText. But where's the command to insert
myTable into the document? You know, kind of like: LET MYDOCUMENT$ =
MYDOCUMENT$ + MYTABLE...

Anyway, apologies for the complete beginner's questions. It seems like VB
has come a long way since the days of my Commodore 64 BASIC ... and left me
behind, I'm afraid.

Thanks again for all your tremendous help,
Ariel
Technical Details
Message-ID: <67D5FBA8538635DBCDE2F80269117BBB@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.isoc.lu!webcrossing
References: <58B49DDE8CFB764A53E11E78EDD2D04C@in.webcrossing.la2eafNXanI> <79CCC9B9F89D31DF2A5630D92B4640A0@in.webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,82604a7f44cea2dd
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!news1.google.com!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: How to put a paragraph into a 1 by 1 table
Message-ID: <67D5FBA8538635DBCDE2F80269117BBB@in.webcrossing.la2eafNXanI>
Date: Thu, 21 Sep 2006 17:58:38 -0700
References: <58B49DDE8CFB764A53E11E78EDD2D04C@in.webcrossing.la2eafNXanI> <79CCC9B9F89D31DF2A5630D92B4640A0@in.webcrossing.la2eafNXanI>
Lines: 29
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