home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / AdPro2_5_0ConversionPack.DMS / in.adf / FREDScripts / FREDSavers / SaveAsRENDITION.fred.pre < prev    next >
Encoding:
Text File  |  1993-11-05  |  1.3 KB  |  63 lines

  1. /*
  2. ** SaveAsRENDITION.fred.pre
  3. **
  4. ** $VER: SaveAsRENDITION.fred.pre 1.1.0 (24.10.93)
  5. **
  6. ** If the SaveAsRENDITION.fred script appears in the InvokeADPro list,
  7. ** this program will ask the user to enter the save parameters for the
  8. ** RENDITION'd file.  These parameters will be stuffed into REXX clips.
  9. **
  10. ** If they fail to answer, the InvokeADPro list will be aborted.
  11. **
  12. ** Clips Exported:
  13. **    FREDRENDITIONFNameSelect    -    String describing how the filename
  14. **                        should be modified
  15. **    FREDRENDITIONSeqFileSelect    -    Name of sequence file created
  16. **
  17. ** NOTE: Clip names are case sensitive.
  18. **
  19. ** This script requires FRED v1.4.0 (or higher) to run.  Also required is
  20. ** ADPro v2.5.0 (or higher).
  21. **
  22. ** Copyright © 1992-1993 ASDG, Incorporated
  23. ** All Rights Reserved
  24. */
  25.  
  26.  
  27. ADDRESS "ADPro"
  28. OPTIONS RESULTS
  29.  
  30. PARSE ARG NumberOfCells NumberOfFrames
  31.  
  32. NL = '0A'X
  33. SQ = '27'X
  34. DQ = '22'X
  35. TRUE  = 1
  36. FALSE = 0
  37.  
  38.  
  39. /*
  40. ** Specify whether the given filename should be reused for the
  41. ** RENDITION'd filename.
  42. */
  43.  
  44. CALL "FREDSCRIPTS:FREDFunctions/ModifyFilenameSelect" '"'".6rn"'"' 4 1 10
  45. FNameSelect = RESULT
  46. IF (RESULT = 10) THEN
  47.     EXIT RESULT
  48.  
  49. CALL "FREDSCRIPTS:FREDFunctions/SeqFileSelect"
  50. SeqFileSelect = RESULT
  51. IF (RESULT = 10) THEN
  52.     EXIT RESULT
  53.  
  54.  
  55. /*
  56. ** Update the clips.
  57. */
  58.  
  59. SETCLIP( "FREDRENDITIONFNameSelect", FNameSelect )
  60. SETCLIP( "FREDRENDITIONSeqFileSelect", SeqFileSelect )
  61.  
  62. EXIT 0
  63.