home *** CD-ROM | disk | FTP | other *** search
- /*
- ** ReDPI.adpro
- **
- ** $VER: ReDPI.adpro 1.0.1 (17.12.92)
- **
- ** This ADPro/MorphPlus script calls the ZapDPI program and forcibly
- ** changes dpi chunks in IFF-ILBM files to DPI.
- **
- ** 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
-
-
- GETFILES '"Select IFF files to UnZap:"'
- 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 -DPI" WORD( FileList, Counter )
- IF (RC ~= 0) THEN
- OKAY1 "Error while changing:" || NL || WORD(FileList,Counter)
- Counter = Counter + 1
- END
-