• 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
Re: Require some help.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Require some help.


  • Subject: Re: Require some help.
  • From: Rob Stott <email@hidden>
  • Date: Sun, 16 Jan 2005 21:54:39 +0000


On 15 Jan 2005, at 10:42 pm, Gil Dawson wrote:

Has anyone figured out how to get the line number of the current cursor position?

Yup. You have to get the selection...

tell
application "BBEdit"
tell text window 1
set theSelection to the selection
end tell
end tell



Hope that helps...

r.

---

Rob Stott – Development Team, Trident UK
Work: +44 (0) 1482 887212 • Mobile: +44 (0) 7881 811533 • Home: +44 (0) 1482 671129

My Schedule: http://ical.mac.com/robstott/Robs32Dev32Schedule
I Work For: http://www.apple.com/uk/creative/trident/
My Band: http://www.superscapemusic.co.uk
 _______________________________________________
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:
    • BBEdit Insertion Point Line Number
      • From: Gil Dawson <email@hidden>
References: 
 >Re: Require some help. (From: Gil Dawson <email@hidden>)

  • Prev by Date: Re: Passing arguments to the script from command line.
  • Next by Date: variable names in list
  • Previous by thread: Re: Require some help.
  • Next by thread: BBEdit Insertion Point Line Number
  • Index(es):
    • Date
    • Thread