home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / ADPro251-3.DMS / ADPro251-3.adf / FREDScripts.lha / FREDSavers / SaveAsALIAS.fred.pre < prev    next >
Encoding:
Text File  |  1994-01-31  |  1.4 KB  |  64 lines

  1. /*
  2. ** SaveAsALIAS.fred.pre
  3. **
  4. ** $VER: SaveAsALIAS.fred.pre 1.0.0 (29.10.93)
  5. **
  6. ** If the SaveAsALIAS.fred script appears in the InvokeADPro list,
  7. ** this program will ask the user to enter the save parameters for the
  8. ** ALIAS'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. **    FREDALIASFNameSelect    -    String describing how the filename
  14. **                    should be modified
  15. **    FREDALIASSeqFileSelect    -    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) and Professional Conversion Pack v2.5.0
  21. ** (or higher).
  22. **
  23. ** Copyright © 1993 ASDG, Incorporated
  24. ** All Rights Reserved
  25. */
  26.  
  27.  
  28. ADDRESS "ADPro"
  29. OPTIONS RESULTS
  30.  
  31. PARSE ARG NumberOfCells NumberOfFrames
  32.  
  33. NL = '0A'X
  34. SQ = '27'X
  35. DQ = '22'X
  36. TRUE  = 1
  37. FALSE = 0
  38.  
  39.  
  40. /*
  41. ** Specify whether the given filename should be reused for the
  42. ** ALIAS'd filename.
  43. */
  44.  
  45. CALL "FREDSCRIPTS:FREDFunctions/ModifyFilenameSelect" '"'".alias"'"' 4 1 10
  46. FNameSelect = RESULT
  47. IF (RESULT = 10) THEN
  48.     EXIT RESULT
  49.  
  50. CALL "FREDSCRIPTS:FREDFunctions/SeqFileSelect"
  51. SeqFileSelect = RESULT
  52. IF (RESULT = 10) THEN
  53.     EXIT RESULT
  54.  
  55.  
  56. /*
  57. ** Update the clips.
  58. */
  59.  
  60. SETCLIP( "FREDALIASFNameSelect", FNameSelect )
  61. SETCLIP( "FREDALIASSeqFileSelect", SeqFileSelect )
  62.  
  63. EXIT 0
  64.