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

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=5
  7. 01=Run Macro
  8. 02= 
  9. 03=This script loads each image of the File List Window
  10. 04=into ImageFX and allows you to run an ImageFX macro
  11. 05=file that either comes with ImageFX or that you created.
  12.  
  13. */
  14.  
  15. options results
  16.  
  17. arg FrameNum TotalFiles
  18. address "IMAGEFX.1"
  19.  
  20.  
  21. if FrameNum = 0 then do
  22.     FrameNum = 1
  23.  
  24.     RequestFile '"Select Macro To Execute!"' 'IMAGEFX:REXX' '' ''
  25.     Macro = result
  26.     call open TempFile,"Ram:CT-RM",W
  27.     call writeln TempFile,Macro
  28.     call close TempFile
  29.     end
  30. else do
  31.     call open TempFile,"RAM:CT-RM",'R'
  32.     Macro = readln(TempFile)
  33.     call close TempFile
  34.     end
  35.  
  36. Rx Macro
  37.  
  38.  
  39.  
  40. exit
  41.