[Contents] [Index] [Help] [Browse <] [Browse >]
command [wait] [source <handle>] [dest <handle>] [original]
        command [<arguments>]

The command command allows you to call the internal commands of
Directory Opus 5 from an ARexx script. The commands execute exactly as if
they had been run from a custom button or menu.

If the  wait  flag is specified, the command will be run synchronously,
otherwise it will return immediately.   RC  will contain a
result code indicating whether the command was successful or not.

Ordinarily, commands operate on the current source and destination listers
- the  source  and  dest  parameters allow you to specify alternative
listers to use by their handles.

The  original  flag allows you to run an original Opus internal function if
the command has been replaced in the command list by an  external module 
( external modules  which add commands to Opus override the internal list).
This means you could have a module that replaced some Opus commands, did
something special in some circumstances, and in others just called the
original Opus function.

The  command  parameter is the name of the command, and  arguments  are
any optional arguments for the command, as normal.

Some examples,
        + command all
        + command wait copy
        + command read s:startup-sequence
        + command source 121132636 makedir name=MyDir noicon
        + command original wait delete ram:#?


Converted on 04 Nov 1998 with RexxDoesAmigaGuide2HTML 2.2 by Michael Ranner.