Get Line Number in Text Wrangler

I’m trying to work on a document in Text Wrangler and I’m somehow not able to determine how to either,

obtain the line number that the insertion point is currently on

or set at a text string at that insertion point.

Does anyone know how I might do that?

Hi Scott,
try this:

tell application "TextWrangler"
	get properties of selection
end tell

If you only have an insertion point the startLine and endLine, startColumn and endColumn are the same.

Greets from
TMA

Thanks…

For my purposes, because the insertion point is always at the beginning of the line at the point in the script I am interested in obtaining the line number, this works for me:

tell application "TextWrangler"
	set props to startLine of selection
end tell