pankaj.c Flagging story beginning of each page and re-inserting another flag before and after this inserted flag
Jun 02, 2010; 22:28
pankaj.c
Flagging story beginning of each page and re-inserting another flag before and after this inserted flag
Hello all,
For some reasons I am flagging (inserting a special text with some character style) at beginning of story of EACH PAGE. Note that inserted flag are hidden text on each story which do disturb the text flow on page.
var myText="{\sometext\}"; myDoc.pages[i].textFrames.itemByName("sections").insertionPoints.item(0).properties = { appliedCharacterStyle : "myCharacterStyle", contents:myText};
Everything goes fine till here.
I am now again revisiting my each page and flag beginning of story of each page with some other flag:
var myText="{\someOtherText\}"; myDoc.pages[i].textFrames.itemByName("sections").insertionPoints.item(0).properties = { appliedCharacterStyle : "myCharacterStyle", contents:myText};
As soon as I do that I get order on top of story as:
{\someOtherText\}{\sometext\}
Though my Correct order should be: {\sometext\}{\someOtherText\}
means second flag should appear after the first ({sometext}) flag. I can understand why this is happening as my insertion point has changed. I am thinking of using findTextPreferences, searching for "\}" and place second flag after this, but I cannot figure out how to do it for story of EACH PAGE.
Insertion points properties like "itemByRange" , "nextItem" etc does not seems to be of any help or may be I am not using them adequately.
Any ideas which you like to throw here are appreciated.
Best, --PC
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/InDesign/Browse/ Manage your subscription: http://www.ListSearch.com/InDesign/
Jun 03
Robert Tkaczyk Re: Flagging story beginning of each page and re-inserting another flag before and after this inserted flag
Jun 03, 2010; 00:07
Robert Tkaczyk
Re: Flagging story beginning of each page and re-inserting another flag before and after this inserted flag
Jun 03
pankaj.c Re: Flagging story beginning of each page and re-insertinganother flag before and after this inserted flag
Jun 03, 2010; 00:47
pankaj.c
Re: Flagging story beginning of each page and re-insertinganother flag before and after this inserted flag
Jun 03
pankaj.c Re: Flagging story beginning of each page and re-insertinganother flag before and after this inserted flag
Jun 03, 2010; 00:53
pankaj.c
Re: Flagging story beginning of each page and re-insertinganother flag before and after this inserted flag
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!