===
AppleScript is pretty flexible, and so there are often multiple
ways to accomplish something. Here is one:
tell application "TextWrangler"
-- returns the number of lines in the active text document
count of lines in text document 1
-- moves the insertion point to the end of the document
select the insertion point after the last character of text
document 1
end tell
===
R.
--
Rich Siegel Bare Bones Software, Inc.
<
sie...@barebones.com> <
http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate me.