Select the text frame and try this below js code.
Sorry, I didn't make myself clear.
I want to define the ammount of columns that I want not find out how many.
try this below js code, it's a read/write access property.
app.selection.textFramePreferences.textColumnCount = 2;
thanks a lot
And now for the subquestion. I know I should probably start a new post but .....
How do I add a column break to the contents?
i.e. for a paragraph break I would use "\r"
myTextFrame.contents += "\rTop of new Column"
what can I use instead of \r
It's do what you want..
myTextFrame.insertionPoints[-1].contents = SpecialCharacters.columnBreak;
myTextFrame.contents += "Top of new Column";
That sounds pefect but for some strange reason it dosn't work.
It's just inserting a paragraph mark like \r does.
I think I'll start a new post on this in another couple of hours.
Thanks so far.
Thanks, Spot on.