Copy link to clipboard
Copied
Hello,
The Fm 10 Scripting Guide seems to say that the flags parameter for GetText() is a bitmask, and I should OR constants to get different kinds of text items and so forth. Is this really true or is there some simpler way to tell GetText() what text items I need? Or do I need to brush up my rusty bitwise OR skills? Or did the tech writer just cut and paste form the FDK Reference?
Thanks
Copy link to clipboard
Copied
I just use a pipe symbol to OR in the constants I need. For example, this one gets paragraph begins and table anchors in a single text list:
var textList = doc.MainFlowInDoc.GetText(Constants.FTI_PgfBegin | Constants.FTI_TblAnchor);
Please let me know if you have any questions or comments. --Rick
Copy link to clipboard
Copied
Thanks for that simple answer Rick, I appreciate it. I knew it was simpler than the docs presented it.
Assuming that ExtendScript technical writers monitor this forum (and for anyone else with a confusion over this), here are my suggestions to clarify the FrameMaker 10 Scripting Guide, p.452, section on GetText() for the Cell object (and also the Cell.GetText() page in the ExtendScript Object Model docs):
Thanks for listening.
Mark
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more