home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / wp_dtp / ispell.lha / spellfile.rexx < prev    next >
OS/2 REXX Batch file  |  1991-02-08  |  683b  |  27 lines

  1. /*
  2.  *  spellfile.rexx spell checks a file using ISpell in ARexx server mode
  3.  *  Requires ISpell version 2.1ljr with ARexx Server mode.
  4.  *  Started: 11/7/89
  5.  *  Last Update: LJR  Sun Jun 03 21:29:40 1990
  6.  *
  7.  *  Copyright (C) 1989,1990  Loren J. Rittle
  8.  *  Use as you will, just document your changes and keep my copyright
  9.  *  notice intact.
  10.  */
  11. parse arg item cmdline
  12. options results
  13. if item = "" then do
  14.     say "Usage: spellfile file1 file2 ..."
  15.     exit
  16. end
  17. if pos('IRexxSpell',(show(ports))) = 0 then do
  18.     'runback ispell -r >null: <null:'
  19.     waitforport 'IRexxSpell'
  20. end
  21. address 'IRexxSpell' filecheck item
  22. r = result
  23. "type" r
  24. "delete" r
  25. if cmdline ~= "" then call spellfile cmdline
  26. exit
  27.