🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by loic_aigon Tue, 17 Mar 2009 21:44
[JS CS3/4] >How to Insert a page break (^P) via scripting ?
#726
Author: loic_aigon
Date: Tue, 17 Mar 2009 21:44
13 lines
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
Re: [JS CS3/4] >How to Insert a page break (^P) via scripting ?
#727
Author: Olav_Kvern
Date: Tue, 17 Mar 2009 21:57
11 lines
795 bytes
Hi Loic,

How about:



myRoot.xmlElements[0].xmlElements[1].insertTextAsContent (SpecialCharacters.pageBreak, XMLElementPosition.AFTER_ELEMENT);

Thanks,

Ole
Re: [JS CS3/4] >How to Insert a page break (^P) via scripting ?
#733
Author: loic_aigon
Date: Tue, 17 Mar 2009 23:00
3 lines
713 bytes
Oh gosh, so much left to learn :-)
Thx a lot for you (always) bright help.
Loic
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads