home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Image Engineer ARexx macro script */ /* by Simon Edwards */ /* 11/7/95 */ Options results signal on error /* Setup a place for errors to go */ if arg()==0 then exit 'PROJECT_INFO' arg(1) 'TYPE' if RESULT~='COLOUR' then do 'LOAD_PALETTE' arg(1) '"IE:Palettes/Grey256.palette"' 'CONVERT_TO_COLOUR' arg(1) greycolour=RESULT 'CONTRAST' greycolour '-11 GREEN' Project1=RESULT CLOSE greycolour end else do 'CONTRAST' arg(1) '-11 GREEN' Project1=RESULT end 'BRIGHTNESS' Project1 '-21 GREEN' Project2=RESULT CLOSE Project1 'CONTRAST' Project2 '-24 BLUE' Project1=RESULT CLOSE Project2 'BRIGHTNESS' Project1 '-41 BLUE' CLOSE Project1 exit /*******************************************************************/ /* This is where control goes when an error code is returned by IE */ /* It puts up a message saying what happened and on which line */ /*******************************************************************/ error: if RC=5 then do /* Did the user just cancel us? */ IE_TO_FRONT LAST_ERROR 'REQUEST "'||RESULT||'"' exit end else do IE_TO_FRONT LAST_ERROR 'REQUEST "Error detected!!!'||D2C(10)||'Image Engineer error message is as follows'||D2C(10)||result||D2C(10)||'Script failed on line '||SIGL||'"' 'Doh!' exit end