Ah yes. I was missing the dot. This does the trick.
return gettoken(readfile(<cc_item>), "count", <crlf>) . " Lns." ;
Interestingly, I'm finding that it doesn't work on every txt file. On some of them, and all ahk files only ever show "1".
I'm guessing that the
<crlf> is the thing being counted? Maybe different types of encoding on the files(?)
<lf> seems to be a little better, but the number of lines returned on the ahk files is still a bit low...
It's also noteworthy that I have this as just one of several components in a Mixed Column...
Maybe the next calculation in the mixed column steps happen before the counts are able to finish(?) I don't think that it's a timing issue, as the same (slightly low) numbers appear after each refresh.