CompuServe Thread

#DOpus 4.0 and AREXX

5 messages in this thread
#53602From: Les PopowMar 29, 1993 5:20 PM
HI; Love DOpus 4.0, but I have a question. I have an AREXX script that takes a filename is a parameter, and then prompts for some input to process against the file. ie: RX sciptname file.name and then the prompt. I have tried to assign this to a button to process the selected file using sciptname {f} but i cannot get a shell/cli window open for the prompt. I have tried all of the flags that seemed to make sense such as OUTPUT WINDOW, or INCLUDE SHELL STARTUP but no go. It does a little HD activity (to REXX: I assume) and then leaves me looking a DOpus as if nothing has happened, which seems to be a pretty accurate discription. Do I have to change my script in any way or am I missing something. I assume it can be done. Would appreciate the help. Les :{)
#53631From: Martin MurrayMar 30, 1993 12:49 AM
Make sure you have the function configured as an AmigaDOS command.. eg, Command c:Rx rexx:myscript {f} Then turn the Output window flag on, and it should work fine. Jon
#53673From: Les PopowMar 30, 1993 6:12 PM
Jon; Thanks, It worked (sort of). The CLI window came up fine and took my input. However, when executeing the open statement for the file, it read in the double quote character _"_ and asked for volume "work:. It doesn't do that from a normal excution outside of DOpus, but I'll work that out. One question however. If this is the way one executes AREXX scripts, what is the AREXX function in the cycle gadget for? Thanks again, Les :{)
#53675From: Martin MurrayMar 30, 1993 6:51 PM
The ARexx function type is really designed for DOpus-specific rexx scripts that interact using the DOpus rexx command set and not using output windows, etc. All the functionality of parameters like {f} can be achieved with the rexx commands available (in fact, it is much more versatile to do it this way), which is why the ARexx function type does not support {} sequences. Jon PS You will probably fix your double-quote " problem by turning the No filename quote flag on. [A
#53740From: Les PopowMar 31, 1993 8:08 PM
Jon; Thanks for the info. I found the quote flag about 5 minutes after logging off. I think I'm starting to get the hang of it all. Got ViewTech hooked in for double-click GIF and JPEG viewing, and am starting to wonder what I did before DOpus 4.0. Later Les :{)