home *** CD-ROM | disk | FTP | other *** search
- /*
- ** FieldBuster.fred.pre
- **
- ** $VER: FieldBuster.fred.pre 1.3.0 (5.11.93)
- **
- ** If the FieldBuster.fred script appears in the InvokeADPro list,
- ** this program will ask the user how to split each frame into its
- ** fields.
- **
- ** Clips Exported:
- ** FREDEvenFieldExt - Filename extension for even fields
- ** FREDOddFieldExt - Filename extension for odd fields
- **
- ** NOTE: Clip names are case sensitive.
- **
- ** This script requires FRED v1.4.0 (or higher) to run. Also required is
- ** ADPro v2.5.0 (or higher).
- **
- ** Copyright © 1992-1993 ASDG, Incorporated
- ** All Rights Reserved
- */
-
-
- ADDRESS "ADPro"
- OPTIONS RESULTS
-
- PARSE ARG NumberOfCells NumberOfFrames
-
- NL = '0A'X
- SQ = '27'X
- DQ = '22'X
- TRUE = 1
- FALSE = 0
-
-
- /*
- ** Ask the user the filename extensions to use for odd and even fields.
- */
-
- continue = 0
- DO UNTIL (continue = 1)
- ADPRO_TO_FRONT
-
- GETSTRING '"Extension for even fields"' ".0"
- EvenFieldExt = ADPRO_RESULT
- IF (RC = 0) THEN DO
- IF (EvenFieldExt = "") THEN DO
- ADPRO_TO_FRONT
-
- OKAYN '"FieldBuster.fred"' '"An extension is required."' '"Retry|Cancel"'
- IF (RC = 0) THEN
- EXIT 10
- END
- ELSE IF (INDEX( EvenFieldExt, "." ) ~= 1) THEN DO
- text = "You must enter an extension" || NL ||,
- "in the form of: .<extension>"
-
- ADPRO_TO_FRONT
-
- OKAYN '"FieldBuster.fred"' '"'text'"' '"Retry|Cancel"'
- IF (RC = 0) THEN
- EXIT 10
- END
- ELSE
- continue = 1
- END
- ELSE
- EXIT 10
- END
-
- continue = 0
- DO UNTIL (continue = 1)
- ADPRO_TO_FRONT
-
- GETSTRING '"Extension for odd fields"' ".1"
- OddFieldExt = ADPRO_RESULT
- IF (RC = 0) THEN DO
- IF (OddFieldExt = "") THEN DO
- ADPRO_TO_FRONT
-
- OKAYN '"FieldBuster.fred"' '"An extension is required."' '"Retry|Cancel"'
- IF (RC = 0) THEN
- EXIT 10
- END
- ELSE IF (INDEX( OddFieldExt, "." ) ~= 1) THEN DO
- text = "You must enter an extension" || NL ||,
- "in the form of: <extension>"
-
- ADPRO_TO_FRONT
-
- OKAYN '"FieldBuster.fred"' '"'text'"' '"Retry|Cancel"'
- IF (RC = 0) THEN
- EXIT 10
- END
- ELSE
- continue = 1
- END
- ELSE
- EXIT 10
- END
-
- SCREEN_TO_FRONT "FRED"
-
-
- /*
- ** Update the clips.
- */
-
- SETCLIP( "FREDOddFieldExt", OddFieldExt )
- SETCLIP( "FREDEvenFieldExt", EvenFieldExt )
-
- EXIT 0
-