Article View: adobe.scripting.indesign
Article #726[JS CS3/4] >How to Insert a page break (^P) via scripting ?
From: loic_aigon
Date: Tue, 17 Mar 2009 21:44
Date: Tue, 17 Mar 2009 21:44
13 lines
1016 bytes
1016 bytes
Hi,
I would like to use that command for placing a pagebreak after a xml element but the string is just considered as plain text.
Is it possible to do so ?
myRoot.xmlElements[0].xmlElements[1].insertTextAsContent ("^P", XMLElementPosition.AFTER_ELEMENT)
I tried \^P but get strange result. The backslash does not appear but the string ^P does.
Any ideas ?
Thanks in advance.
Loic
Technical Details
Message-ID:
<59b84fa0.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,731a2354df8885e6,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: loic_aigon <loic_aigon@yahoo.fr> Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS CS3/4] >How to Insert a page break (^P) via scripting ? Message-ID: <59b84fa0.-1@webcrossing.la2eafNXanI> Date: Tue, 17 Mar 2009 14:44:20 -0700 Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit