Article View: adobe.scripting.indesign
Article #17925Re: VB: idPara.Move with XML causes InD to freeze
From: Stephen J O'Brien
Date: Wed, 07 May 2003 23:17
Date: Wed, 07 May 2003 23:17
11 lines
1432 bytes
1432 bytes
Thanks Ole. What I've just learned is that "Move" will fail if the XMLElement is assigned the paragraph object. However, if you set a range such as from idPara.Characters.Item(1) to idPara.Characters.Item(-1) and assign that to the element, it seems to work much better, including during any editing after the fact. I wonder if it would work as well to assign the TextContents to the element instead of the Range, or would that lose something in the way of object persistence? Cheers, Stephen. PS: Thanks for the hint about using an id prefix.
Technical Details
Message-ID:
<1de90669.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de90669.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,ed4a7ad3a33b10bb X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-07 16:38:07 PST From: "Stephen J O'Brien" <stephen@typefi.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!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: VB: idPara.Move with XML causes InD to freeze Message-ID: <1de90669.1@WebX.la2eafNXanI> Date: Wed, 7 May 2003 16:17:33 -0700 References: <1de90669.-1@WebX.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit