Changes between Initial Version and Version 1 of FAQ/ARexx Scripting

May 11, 2012, 3:52:45 PM (7 years ago)
Jens Maus

initial version


  • FAQ/ARexx Scripting

    v1 v1  
     1[[TOC(titleindex, heading=FAQ Contents, notitle, depth=0, General Questions, Installing YAM, Using YAM, ARexx Scripting)]]
     3= [wiki:"ARexx Scripting" ARexx Scripting] =
     6== The "WRITEEDITOR TEXT" arexx command doesn't seem to work? ==
     7If you are having trouble getting the WRITEEDITOR TEXT arexx command to work as expected and your script always returns an error similar to that one:
     101 *-* WRITEDITOR TEXT Hello World;
     11+++ Command returned 10
     14then chances are high that you simply missunderstood or missread the documentation about the WRITEEDITOR command in the YAM amigaguide documentation. So please note that using the TEXT attribute of the WRITEEDITOR command implies to take care of a special text quoting as otherwise YAM isn't able to identfy what the attribute and what the actual text is you supplied to the WRITEEDITOR arexx command.
     16For example, if you want to put the text "Hello World!" into an already opened write window in YAM you are ought to have you arexx script designed like:
     19/* My script */
     22'WRITEEDITOR "TEXT Hello World!"'
     25Please take special attention on the used quotating marks (' and ") used on the WRITEEDITOR command. Any other combination of these quotation marks will actually result in the WRITEEDITOR command to return the above mentioned error. However, if you want to just issue the e.g. CLEAR attribute you can also simply use "WRITEEDITOR CLEAR" without any quotating marks. The special quotation is only required for the TEXT attribute.