home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20638 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.3 KB

  1. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!theophys1.anu.edu.au!user
  2. From: kpw105@huxley.anu.edu.au (Ken Wessen)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: A short question on MPW scripting
  5. Followup-To: comp.sys.mac.programmer
  6. Date: 4 Jan 1993 22:39:33 GMT
  7. Organization: Theoretical Physics, Australian National University
  8. Lines: 20
  9. Distribution: world
  10. Message-ID: <kpw105-050193092430@theophys1.anu.edu.au>
  11. NNTP-Posting-Host: 150.203.15.19
  12.  
  13. Hello.
  14. I am new to MPW scripting, and am having a problem doing something that
  15. seems like it should be quite easy.  What I require is to find a completely
  16. blank line both above and below the current insertion point, and select
  17. everything in between.
  18. I tried using
  19. find \o[La-zA-Z0-9d\%]\J:J/o[La-zA-Z0-9d\%]/
  20. where o=option 8, L=option L, J=option-j and d=option d,
  21. but this didnt work.  Furthermore, the blank line definition is not
  22. satisfactory and I dont really want to extend it to include [not list of
  23. all possible characters].  Using a wild card [option L option x] gave
  24. results I didn't really understand, but I thought it should have just
  25. matched a line with nothing but a return.  Any help would be greatly
  26. appreciated.
  27.  
  28. Thanks, 
  29. Ken.
  30.  
  31. p.s. Is there a script or tool floating around somewhere that will word
  32. wrap a selection of text?
  33.