home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Graphics
/
SViewIV
/
ARexx-Scripts
/
ExportToImageFX.rx
< prev
next >
Wrap
Text File
|
2000-08-08
|
1KB
|
63 lines
/*
$VER: ExportToImageFX.rx V9.00 (9.9.99)
© 1999 by Andreas R. Kleinert
This exports a graphics (that is currently loaded
in SViewIV) to ImageFX. ImageFX must be running.
USAGE: RX ExportToImageFX
*/
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:IFX_EXPORT'
address command wait 3
IF ~SHOW('P','IMAGEFX.1') THEN DO
say "Could not locate ARexx port of ImageFX !"
CALL ErrorOut 0
END
address 'IMAGEFX.1'
Screen2Front
LoadBuffer 'T:IFX_EXPORT' FORCE
Uniconify
address command wait 3
address command
Delete 'T:IFX_EXPORT'
Delete 'T:IFX_EXPORT.info'
CALL ErrorOut 0
/* Errorout procedure ----------------------- */
ErrorOut:
PARSE ARG ExitCode
EXIT ExitCode
END