home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Crop_Image < prev    next >
Encoding:
Text File  |  1995-10-11  |  873 b   |  44 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=7
  7. 01=Crop Image
  8. 02= 
  9. 03=This script will load an image into
  10. 04=Image FX and allow you to crop the
  11. 05=first image visually then apply those
  12. 06=settings to the rest. This can not be
  13. 07=used if you run IFX on the workbench.
  14.  
  15. */
  16.  
  17. options results
  18.  
  19. arg FrameNum TotalFiles
  20. address "IMAGEFX.1"
  21.  
  22.  
  23. if FrameNum = 0 then do
  24.     FrameNum = 1
  25.     Learn "RAM:CT-IFCI" NoHeader Quiet Force
  26.     Crop
  27.     Learn Stop Quiet Force
  28.     end
  29. else do
  30.     if exists("RAM:CT-IFCI.ifx") then address command "Rename RAM:CT-IFCI.ifx to RAM:CT-IFCI"
  31.     call open TempFile,"RAM:CT-IFCI",R
  32.     do until eof(TempFile)
  33.         line = readln(TempFile)
  34.         parse var line Start" "RestOfLine
  35.         if Start = "Crop" then Answer = line
  36.         end
  37.     call close TempFile
  38.     Answer
  39.     end
  40.  
  41.  
  42.  
  43. exit
  44.