IT lexicon › Infra & Ops › Obey file (RISC OS)

Obey file (RISC OS)

Infra & Ops På svenska → Updated: 2026-11-09

RISC OS's plain command scripts, in which each line runs as a star command — and the mechanism that lets applications find their own directory.

An Obey file has filetype &FEB and contains lines such as *Set, *RMEnsure and *Run, exactly as if typed at the command line. There are no loops or conditionals worth mentioning; anyone who needed logic wrote BBC BASIC. The !Run and !Boot files inside application directories are almost always Obey files.

The important part is the system variable Obey$Dir, set to the directory containing the running file. The line Set MyApp$Dir <Obey$Dir> at the top of !Run is how a RISC OS application knows where it lives, and therefore why it can be moved around freely. The TaskObey variant runs the same thing as a multitasking task on the desktop rather than freezing it while the script runs.

← Back to the lexicon