Article View: adobe.scripting.indesign
Article #16751Re: [VB] Alteration on Paragraph.TextContents isn't reflected in object model
From: Jens Schulze
Date: Thu, 31 Jul 2003 10:33
Date: Thu, 31 Jul 2003 10:33
24 lines
1832 bytes
1832 bytes
Ole,
> To insert text into a paragraph without invalidating the paragraph object,
> use an insertion point--that way, you won't be removing the carriage
return
> at the end of the paragraph (which is what tells InDesign that it's a
paragraph).
I just modified my script to your advice into:
enumaration = "1"
Me.txtFillText.Text = "."
sGap = " "
REM myActualParagraph.TextContents is "Headline Level 1"
myActualParagraph.InsertionPoints.Item(1).TextContents = enumeration &
Me.txtFillText.Text & sGap
MsgBox (myActualParagraph.TextContents)
So in ID the text is inserted as it should be ("1. Headline Level 1"), but
in the watch window and in the message box called it stays "Headline Level
1"... :-( Do you have any further advices?
Thanks alot,
Jens
Technical Details
Message-ID:
<02694FFC3F1C6EB715CA6CD99CE58DF6@in.WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!snoopy.risq.qc.ca!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<370F0F6BE5E413811BC789EAB1A3127D@in.WebX.la2eafNXanI> <1dea2438.0@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,1423a92aa3a5942 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-31 03:38:10 PST From: "Jens Schulze" <adobeforums@trickbetrueger.org> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!snoopy.risq.qc.ca!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [VB] Alteration on Paragraph.TextContents isn't reflected in object model Message-ID: <02694FFC3F1C6EB715CA6CD99CE58DF6@in.WebX.la2eafNXanI> Date: Thu, 31 Jul 2003 03:33:42 -0700 References: <370F0F6BE5E413811BC789EAB1A3127D@in.WebX.la2eafNXanI> <1dea2438.0@WebX.la2eafNXanI> Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit