home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / language / j32.sit / j.rsrc / TEXT_2902_)script.txt < prev    next >
Encoding:
Text File  |  1991-06-13  |  1.1 KB  |  22 lines

  1. )script   Script
  2. )sscript  Silent Script
  3.  
  4. )script and )sscript accept an input file name and an optional output file name. File names must be in quotes. A dash (-) for the input file name means "standard input", i.e. the keyboard. The input file consists of lines of APL sentences and other input lines, and is known as a "script". The output file is suitable for subsequent use as a script. System commands in scripts are ignored. )script differs from )sscript in that it outputs to the "standard output" (the screen) as well as to any output file. Examples:
  5.  
  6. )script - 'sesslog'
  7.   Input obtained from the keyboard; output
  8.   appended to file "sesslog" and to the screen.
  9.  
  10. )sscript '\jscripts\asdf'
  11.   Input from file "\jscripts\asdf"; no output.
  12.   Input reverts to the keyboard at the end of
  13.   "\jscripts\asdf".
  14.  
  15. )sscript 'disk:folder:fold1:inf' 'outf'
  16.   Input obtained from "disk:folder:fold1:inf";
  17.   output appended to "outf".
  18.  
  19. )script -
  20.   Default.
  21.  
  22. If there is a file named "profile.js" in the current directory, J will automatically execute   )script 'profile.js'   at the start of a session.