home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 164.lha / ARexx / test < prev    next >
Text File  |  1988-04-28  |  1KB  |  31 lines

  1. /* */
  2. /* example ARexx script to use Arch */
  3.  
  4. /* possible commands are: OPEN (8 char string, used in gadget) */
  5. /*                        PATH (initial path for requester)    */
  6. /*                        EXTE (extension to match in files)   */
  7. /*                        FILE (filename to preset)            */
  8. /*                        CLOSE      --terminates Arch--       */
  9.  
  10. /* when you run Arch (and you should RUN it), you must supply  */
  11. /* a name associated with your project. The following test     */
  12. /* assumes you did this in the CLI:         run arch test      */
  13. /* The port name will then have 'test' imbedded in it. If you  */
  14. /* run more than one 'test' invocation of Arch, the NUMBER at  */
  15. /* the end of the portname, '1' in this case, will increment,  */
  16. /* so that there will never be any duplicate ports in-system.  */
  17. /*  */
  18.  address 'APort_test_1'   /* set port address */
  19.  
  20.  'PATH df0:'              /* set initial path */
  21.  'EXTE .info'             /* set extension to match */
  22.  
  23.  options results          /* ensure that we can see result */
  24.  'OPEN --Test--'          /* invoke requester, button named --Test-- */
  25.  options                  /* turn OFF result request */
  26.  
  27.  say result               /* show usable result from requester */
  28.  
  29.  exit                     /* and get out (Arch still running in bkrnd) */
  30.  
  31.