Answered
Peter KahrelCorrect answer
Community Expert
Aug 21, 2026 1:14 PM UTC
Select the text frame with the colons (or select a few lines), then…
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = ': \\K';
x = app.selection[0].findGrep();
max = 0;
for (i = 0; i < x.length; i++) {
max = Math.max (x[i].horizontalOffset);
}
alert (max);

