home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / Converter / IMAFX26.lha / imagefx2 / rexx / autofx / SaveBufferAs_FlyerClip.ifx < prev    next >
Encoding:
Text File  |  1996-04-10  |  754 b   |  34 lines

  1. /*
  2.  * $VER: SaveBufferAs_FlyerClip.ifx 2.5 (25.02.96)
  3.  * Copyright © 1996 Nova Design, Inc.
  4.  * Written by Thomas Krehbiel
  5.  *
  6.  * Append main buffer to FlyerClip file.  Requires FlyerClip saver.
  7.  *
  8.  * Inputs:
  9.  *    Word(Arg(1),1) = Frame number (1 - N)
  10.  *    Word(Arg(1),2) = Main filename ("-" if not specified)
  11.  *    Word(Arg(1),3) = Swap filename ("-" if not specified)
  12.  *    Word(Arg(1),4) = Sequence number (?)
  13.  *    Word(Arg(1),5) = Total number of frames (N)
  14.  *
  15.  * Returns:
  16.  *    0 if successful, non-zero on failure
  17.  *
  18.  */
  19.  
  20. OPTIONS RESULTS
  21.  
  22. base = 'Autofx_SaveBufAsFlyer_'
  23. seq  = WORD(ARG(1),4)
  24.  
  25. name = GETCLIP(base||'Name'||seq)
  26.  
  27. /* gracefully exit if no buffer */
  28. GetMain
  29. IF rc ~= 0 THEN EXIT 0
  30.  
  31. SaveBufferAs FlyerClip '"'name'"' Append
  32.  
  33. EXIT rc
  34.