Scripting text frames connected in a flex layout (InDesign)
Hi,
since the flex layout is a brand new feature in InDesign, it is difficult for me to find anything about using scripts with it.
This page states that "flex layout is scriptable", however it links to InDesign ExtendScript API documentation, where I could not find even a mention of this flex layout (I believe it is just a question of few weeks).
Still - could any of you give me an advice, how to change content of a text frame, that is connected into a flex-layout object?
I have got my script working with simple (normal) text frames, now the flex-layout frames are ignored.
var tfs = page.textFrames;
var i = tfs.length;
while(i--) {
if (tfs[i].contents == "search_string") {
tfs[i].contents = "replace_string";
}
}
Thank you very much for your hints.
Honza
