• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
BBEdit Insertion Point Line Number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: BBEdit Insertion Point Line Number
      • From: Bob Studer <email@hidden>
References: 
 >Re: Require some help. (From: Gil Dawson <email@hidden>)
 >Re: Require some help. (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: X, Classic, or 9?
  • Next by Date: Re: BBEdit Insertion Point Line Number
  • Previous by thread: Re: Require some help.
  • Next by thread: Re: BBEdit Insertion Point Line Number
  • Index(es):
    • Date
    • Thread