BBEdit Insertion Point Line Number
BBEdit Insertion Point Line Number
- Subject: BBEdit Insertion Point Line Number
- From: Gil Dawson <email@hidden>
- Date: Sun, 16 Jan 2005 15:18:37 -0800
Title: BBEdit Insertion Point Line
Number
At 2:42 PM -0800 1/15/05, Gil Dawson wrote:
>Has anyone figured out how to get the line number of the
current cursor position?
>...tell application "BBEdit 4.5" to get number of
line in window 1
>...produces the total number of lines in the file.
At 9:54 PM +0000 1/16/05, Rob Stott wrote:
>tell application "BBEdit"
> tell text
window 1
>
set
theSelection to the selection
> end
tell
>end tell
Thanks, Rob--
This produces a very interesting result. It shows up in my
Result window as...
insertion point after
character 13414 of window "TestBook.txt" of application
"BBEdit 4.5"
Is there a way to get a line number out of this result?
--Gil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden