This content has been marked as final. Show 3 replies
I am using CS3 Middle East Edition on WinXP Pro, looking to do this either in VB or JS.
Hi Jonathon Anderson,
//Given a document "myDocument"...
var myLastInsertionPoint = myDocument.pages.item(0).textFrames.item(0).insertionPoints(-1);
The first insertion point on page 2 would be:
var myFirstInsertionPoint = myDocument.pages.item(1).textFrames.item(0).insertionPoints.item(0);
Thanks a lot! I am sorry if this sounds weird, But I am really new, I can't seem to find out what to do with this code. Do you mind to help me in "filling in the gaps"?
Maybe I can tell you what I am trying to do so that you can understand.
I have a 200+ page indd doc that has several text flows, But one main text flow that contains the majority of the text. When the copy is final and approved, I need to export that main flow to word and then make insert PageBreaks in the Word file according to the indd file.
My idea is to insert a special character that I can then replace (in word) to a Pagebreak. The word part is very easy. What I need help with is to run a script that will loop each page in my indd doc and find the last character in the last text frame and insert a special character that will not re-flow the text.
I hope you can help me with this. I would very much appreciate any help you can assist me with!