home *** CD-ROM | disk | FTP | other *** search
/ Magazyn WWW 1999 July / www_07_1999.iso / prez / amiga / stricq_1371.lha / stricq / rexx / ParseICQMessage.rexx < prev    next >
OS/2 REXX Batch file  |  1999-04-09  |  804b  |  30 lines

  1. /*
  2.  
  3.   ParseICQMessage.rexx - An example of how to parse an ICQ message
  4.  
  5.   $VER: ParseICQMessage.rexx v2.1 09.04.99 Copyright (C) 1998,1999 Douglas F. McLaughlin
  6.  
  7.   Written By: Douglas F. McLaughlin 
  8.  
  9.   Note: URL messages seperate the description from the URL by a ASCII 254 (0xFE).
  10.         It is the responsibility of the ARexx script to delete the file after
  11.         all processing is done.  Each filename will be unique to each message
  12.         so that no filename collisions will occur.
  13.  
  14.   Note2: Permission is granted to use this script in any form or make any modifications
  15.          as necessary.
  16.  
  17. */
  18.  
  19. parse arg uin type file .
  20.  
  21. address STRICQ.1 'GETCONTACT UIN='uin
  22.  
  23. address command 'sys:utilities/say message from 'icqrc.nick
  24.  
  25. address command 'sys:utilities/say -x 'file
  26.  
  27. call delete(file)
  28.  
  29. exit 0
  30.