home *** CD-ROM | disk | FTP | other *** search
- /*
- ** SeqFileAppend
- **
- ** $VER: SeqFileAppend 1.1.0 (5.11.93)
- **
- ** This ARexx script contains a function which appends the given cell information
- ** to an existing FRED sequence (.seq) file. This script must be used in conjunction
- ** with (and called after calling) the SeqFileSelect script.
- **
- ** INPUTS
- ** SeqFName -- filename of the sequence file to append to.
- ** CellFName -- filename of the cell to append.
- ** CellLength -- number of frames represented by this cell.
- **
- ** RETURN
- ** Nothing
- **
- ** This script should work with current versions of ARexx.
- **
- ** This script requires ADPro v2.5.0 (or higher).
- **
- ** Copyright © 1993 ASDG, Incorporated
- ** All Rights Reserved
- */
-
-
- /*ADDRESS "ADPro"*/
- OPTIONS RESULTS
-
-
- NL = '0A'X
- SQ = '27'X
- DQ = '22'X
- TRUE = 1
- FALSE = 0
-
-
- PARSE ARG '"'SeqFName'"' '"'CellFName'"' CellLength
- /*
- address "ADPro" OKAY1 SeqFName || NL || CellFName || NL || CellLength
- */
-
- IF (SeqFName = "???") THEN
- EXIT 0
-
- ADDRESS "ADPro" XSIZE
- CellWidth = ADPRO_RESULT
-
- ADDRESS "ADPro" YSIZE
- CellHeight = ADPRO_RESULT
-
- CALL "FREDSCRIPTS:FREDFunctions/FileOnly" CellFName
- CellNodeName = RESULT
-
- SeqLine = CellFName || " " ||,
- CellNodeName || " " ||,
- CellLength || " " ||,
- CellWidth || ", " ||,
- CellHeight
-
- ADDRESS "ADPro"
-
- IF (OPEN( 'SeqFH', SeqFName, 'Append' ) ~= 0) THEN DO
- IF (WRITELN( 'SeqFH', SeqLine ) = 0) THEN DO
- ADPRO_TO_FRONT
- OKAY1 "Error appending to" || NL ||,
- SeqFName || NL || NL ||,
- "Aborting."
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
-
- CLOSE( 'SeqFH' )
- END
- ELSE DO
- ADPRO_TO_FRONT
- OKAY1 "Error opening sequence file"
- SCREEN_TO_FRONT "FRED"
- EXIT 10
- END
-
- EXIT 0
-