home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!theophys1.anu.edu.au!user
- From: kpw105@huxley.anu.edu.au (Ken Wessen)
- Newsgroups: comp.sys.mac.programmer
- Subject: A short question on MPW scripting
- Followup-To: comp.sys.mac.programmer
- Date: 4 Jan 1993 22:39:33 GMT
- Organization: Theoretical Physics, Australian National University
- Lines: 20
- Distribution: world
- Message-ID: <kpw105-050193092430@theophys1.anu.edu.au>
- NNTP-Posting-Host: 150.203.15.19
-
- 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.
-
- Thanks,
- Ken.
-
- p.s. Is there a script or tool floating around somewhere that will word
- wrap a selection of text?
-