home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1997 #3 / amigamamagazinepolishissue03-1 / polski_aminet / lukasz_szelag / iff256.rexx next >
OS/2 REXX Batch file  |  1995-12-29  |  930b  |  30 lines

  1. /*
  2.   $VER: iff256.rexx 1.2 (25.1.95)
  3.   (c) by Lukasz Szelag (luk@i17linuxa.ists.pwr.wroc.pl
  4.  
  5. This  ARexx  script is for GfxCon users and converts series of input images
  6. (each  input  image  should match pattern *.xxxxx, where xxxxx is the frame
  7. number)  to  another  graphics format as options given. You may change some
  8. lines and customize the script for your own.
  9. */
  10.  
  11. /* preferences */
  12. program_path    = "Work:Gfx/misc/GfxCon"
  13. program_options = "FORMAT ILBM COLORS 256 GRAYSCALE"
  14. input_basename  = "Work:Storage/24/IFF24"
  15. output_basename = "Work:Storage/256/pic"
  16. first_frame     = 1
  17. last_frame      = 202
  18.  
  19. /* conversion */
  20. DO i = first_frame TO last_frame
  21.   in_name  = input_basename  || "." || Right("00000" || i, 5)
  22.   out_name = output_basename || "." || Right("00000" || i, 5)
  23.   SAY
  24.   SAY "Processing:" in_name
  25.   SAY
  26.  
  27.   ADDRESS COMMAND program_path || " " || in_name || " TO " || out_name || " " || program_options
  28.   SAY
  29. END
  30.