home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Graphics
/
SViewIV
/
ARexx-Scripts
/
ExportToXiPaint.rx
< prev
next >
Wrap
Text File
|
2000-08-08
|
1KB
|
61 lines
/*
$VER: ExportToXiPaint.rx V9.06 (29.12.99)
© 1999 by Andreas R. Kleinert
This exports a graphics (that is currently loaded
in SViewIV) to XiPaint. XiPaint must be running.
USAGE: RX ExportToXiPaint
*/
address command
OPTIONS RESULTS
SIGNAL ON ERROR
SVIIPORT = 'SViewII.rx'
SVNGPORT = 'SViewNG.rx'
SVPORT = 'SuperView.rx'
IF ~SHOW('P',SVPORT) THEN SVPORT = SVNGPORT
IF ~SHOW('P',SVPORT) THEN SVPORT = SVIIPORT
IF ~SHOW('P',SVPORT) THEN DO
say "Could not locate ARexx port of SViewIV !"
CALL ErrorOut 0
END
ADDRESS VALUE SVPORT
'SAVE_TYPE=ILBM CmpByteRun1'
'SAVE='||'T:XI_EXPORT'
address command wait 3
IF ~SHOW('P','xipaint') THEN DO
say "Could not locate ARexx port of XiPaint !"
CALL ErrorOut 0
END
address 'xipaint'
setloader "Multipic_Loader"
openproject 'T:XI_EXPORT'
address command wait 3
address command
Delete 'T:XI_EXPORT'
Delete 'T:XI_EXPORT.info'
CALL ErrorOut 0
/* Errorout procedure ----------------------- */
ErrorOut:
PARSE ARG ExitCode
EXIT ExitCode
END