home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
comms
/
other
/
iris
/
storemsg.irx
< prev
Wrap
Text File
|
1998-04-23
|
1KB
|
76 lines
/* REXX script to transfer message(s) to the Store folder */
/* $VER: StoreMsg.irx V1.1 (supplied with Iris V1.3) */
address IRIS
options results
options failat 11
'LOCKGUI'
signal on break_c
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Store message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Store message(s)" "Select at least one*Nmessage first!" "**_OK"'
signal break_c
end
else nop
dest = "Store"
'GETFOLDER'
if result = dest then do
'ASKCHOICE "Store message(s)" "Impossible action:*NSame folder selected!" "**_OK"'
signal break_c
end
else nop
i = 0
err = ''
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Store message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Store message(s)" "Did you click on the listview???" "**_OK"'
end
else nop
do i=0 to n-1
'MESSAGEFILE' i
msg = result
if rc > 0 then do
err = 'Did you click on the listview???'
leave i
end
else nop
'READMESSAGE "'||msg||'" 0 TO "'||dest||'"'
if rc > 0 then do
err = 'The READMESSAGE command failed.'
leave i
end
else nop
end
if err ~= '' then do
'ASKCHOICE "Store message(s)" "'||err||'" "**_OK"'
end
else do
'DELETE'
end
signal break_c
exit
break_c:
'UNLOCKGUI'
exit