This content has been marked as final.
Show 3 replies
-
1. Re: File Name from Character through hard return. Almost there.
pixxxel schubser May 13, 2014 10:42 AM (in response to cathykka)Hello cathykka,
sorry, if I misunderstood your post.
Quick & dirty
You could replace these lines:
// all paragraphs on the current page var allPages = (curPage.textFrames.everyItem().paragraphs[0]); { pageName=allPages.characters.itemByRange(0,allPages.contents.toString().indexOf("^p") -1); var paraName = "" + pageName.contents;with this:
// all paragraphs on the current page var allPages = (curPage.textFrames[0].lines[0]); { var paraName = allPages.contents;There are some other things to do, but at first this should help.
If not, please upload an example idml.
Have fun
-
2. Re: File Name from Character through hard return. Almost there.
cathykka May 14, 2014 11:07 AM (in response to pixxxel schubser)Thanks! Grateful
That worked perfectly with one minor edit. Changing lines to paragraphs in the first line.
var allPages = (curPage.textFrames[0].lines[0]); { var paraName = allPages.contents;to
var allPages = (curPage.textFrames[0].paragraphs[0]); { var paraName = allPages.contents; -
3. Re: File Name from Character through hard return. Almost there.
pixxxel schubser May 14, 2014 1:38 PM (in response to cathykka)You're welcome


