|                   +----------------------------------+
|                   |                                  |
|                   |    !Run obey file for WindowEd   |
|                   |       1992 Armen Software       |
|                   |                                  |
|                   +----------------------------------+

| +------------------------------------------------------------------------+
| | Set up variable to point to application                                |
| +------------------------------------------------------------------------+

    Set WindowEd$Dir <Obey$Dir>

| (This should change the value of Alias$@RunType_FEC as well - its a macro)

| +------------------------------------------------------------------------+ 
| | Load in modules as required                                            |
| +------------------------------------------------------------------------+
              
| Check that a !System is around, and if not generate standard error

    If "<System$Path>"="" Then Error System resources could not be found.  Double-click on a !System application and reload.

| Load in ColourTrans if necessary,and generate error if too old

    RMEnsure ColourTrans 0.51 RMLoad System:Modules.Colours
    RMEnsure ColourTrans 0.51 Error WindowEd needs ColourTrans 0.51 or later.

| Load in modules from application directory (the errors should never occur

    RMEnsure Error 1.05 RMLoad <WindowEd$Dir>.Modules.Error
    RMEnsure Error 1.05 Error Can't find Error module.
    RMEnsure InterfaceManager 1.33 RMLoad <WindowEd$Dir>.Modules.Interface
    RMEnsure InterfaceManager 1.33 Error Can't find Interface module.
    RMEnsure MessageTrans 0.03 RMLoad <WindowEd$Dir>.Modules.MsgTrans
    RMEnsure MessageTrans 0.03 Error Can't find MessageTrans module.

| +------------------------------------------------------------------------+
| | Set up memory and parameter passing, then load main program            |
| +------------------------------------------------------------------------+

| Ask WIMP for some application space
 
    WimpSlot -min 384K -max 384K

| Place parameters in system variable (it's easier this way)

    SetEval WindowEd$Parameters "%*0"

| And call main program

    Run <WindowEd$Dir>.!RunImage