home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!seuss.apple.com!user
- From: absurd@apple.apple.com (Tim Dierks, software saboteur)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: A short question on MPW scripting
- Message-ID: <absurd-050193161631@seuss.apple.com>
- Date: 6 Jan 93 00:19:24 GMT
- References: <kpw105-050193092430@theophys1.anu.edu.au>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: MacDTS Marauders
- Lines: 38
-
- In article <kpw105-050193092430@theophys1.anu.edu.au>,
- kpw105@huxley.anu.edu.au (Ken Wessen) wrote:
- >
- > Hello.
- > I am new to MPW scripting, and am having a problem doing something that
- > seems like it should be quite easy. What I require is to find a completely
- > blank line both above and below the current insertion point, and select
- > everything in between.
- > I tried using
- > find \o[La-zA-Z0-9d\%]\J:J/o[La-zA-Z0-9d\%]/
- > where o=option 8, L=option L, J=option-j and d=option d,
- > but this didnt work. Furthermore, the blank line definition is not
- > satisfactory and I dont really want to extend it to include [not list of
- > all possible characters]. Using a wild card [option L option x] gave
- > results I didn't really understand, but I thought it should have just
- > matched a line with nothing but a return. Any help would be greatly
- > appreciated.
-
- Try using:
-
- find \o5\!1:/o5/
-
- Where o is option-8 and 5 is option-5. If a blank line may have
- white space, use
-
- find \o[ dt]*5\!1:j/o[ dt]*5/
-
- Where o is option-8, 5 is option-5, j is option-j, and d is option-d.
-
- > p.s. Is there a script or tool floating around somewhere that will word
- > wrap a selection of text?
-
- I've got one called Indent, which I believe I got out of the MPW
- Goodies package, which I think comes with the developer CD or on
- E.T.O., and might be on the ftp site.
-
- Tim Dierks
- MacDTS, but I speak for myself and my brain-damaged keyboard
-