home *** CD-ROM | disk | FTP | other *** search
- /*
- ** CheckDPI.adpro
- **
- ** $VER: CheckDPI.adpro 1.0.1 (17.12.92)
- **
- ** This ADPro/MorphPlus script calls the ZapDPI program and reports
- ** DPI chunk status.
- **
- ** This script requires ADPro 2.0.0 (or higher) or MorphPlus 1.0.0 (or
- ** higher) with ADPro's ZapDPI program to run.
- **
- ** Copyright © 1992 ASDG Incorporated All Rights Reserved
- */
-
-
- ADDRESS "ADPro"
- OPTIONS RESULTS
-
-
- NEWLINE = '0A'X
-
- GETFILES '"Select IFF files to Check:"'
- IF (RC ~= 0) THEN DO
- /*
- ** No selection was made
- */
- EXIT
- END
-
- FileList = ADPRO_RESULT
- FileCount = WORDS( FileList )
- Counter = 1
-
- DO WHILE (Counter <= FileCount)
- ADDRESS COMMAND "ZapDPI" "-c" WORD( FileList, Counter )
- ZapResult = RC
-
- String = WORD( FileList, Counter )
- String = STRIP( String, 'b', '"' )
- IF (ZapResult = 5) THEN
- ErrorString = "contains a DPI chunk."
- ELSE IF (ZapResult = 0) THEN
- ErrorString = "does not contain a DPI chunk."
- ELSE ErrorString = "Error reading or locating file."
- OKAY1 String || NL || ErrorString
-
- Counter = Counter + 1
- END
-