Legend
October 23, 2026
Answered
How to select Lines "from 0 to Any line backwards“ that outside the current column?
- 9 replies
- 66 views
- Translate
Hello everyone.
Assumption:
My text box has two columns, and the first column has 12 lines. When I use the following code to select, it will report an error.
var d = app.activeDocument;
var item = app.selection[0];
item.texts[0].textColumns[0].itemByRange(0, 15).select();The reason is that it exceeds 12 lines.
But I used the following, which only applies to the left column and not to the right column, because it starts selecting from the 0th lines of the left column(it should from right lines 0th):
var d = app.activeDocument;
var item = app.selection[0];
item.texts[0].parentTextFrames[0].lines.itemByRange(0, 20).select();I want it to be applicable to any single column.
Or any column in multiple columns, how can I modify it.
Thnak you very much.
The forum still cannot upload images
