• 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: Selecting entire line in BBedit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting entire line in BBedit


  • Subject: Re: Selecting entire line in BBedit
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 06 Dec 2000 17:21:45 -0500
  • Organization: [very little]

Maxime Paquette wrote:
> From: "Maxime Paquette" <email@hidden>
> To: "AppleScript-users" <email@hidden>
> Subject: Selecting entire line in BBedit.
> Date: Wed, 6 Dec 2000 13:39:47 -0500
>
> Hi,
> I'm triyng to select an entire line in a text file in BBedti 3.1 to
> delete it. The problem is, depending on the window size, it select 1/2 or
> 3/4 of the line because the line, when the window is small, is almost always
> on 2 lines. So half the line that are supposed to be deleted aren't. I
> tried to resize the windows, so that the line will be on one line, without
> sucess.
>
> So, here's a part of the script, it's just an exemple to delete a single
> line:
>
> Tell application "BBedit 3.1"
> activate
> open file "blabla:blabla:blabla"
> Find "333" -- all the line that I want to delete begin by that
> Select Current Line -- I tried "Full Lines" too
> Delete selection
> End Tell
>
> Any idea how I can select an entire line? or maybe an other way to delete
> all the line I want?
>
> Thanks.

If your lines end in carriage returns they're actually paragraphs, in
which case you could select the paragraph with the same index number and
get the whole "line".

Marc [12/6/00 5:21:41 PM]


  • Prev by Date: Re: Round Handler, care to share.
  • Next by Date: Re: emailer script question....
  • Previous by thread: Re: Round Handler, care to share.
  • Next by thread: Re: applescript-users digest, Vol 2 #106 - 15 msgs
  • Index(es):
    • Date
    • Thread