IT lexicon › Programming › hey (BeOS)

hey (BeOS)

Programming På svenska → Updated: 2026-11-09
More info
Creator
Attila Mezei
Type
Command-line tool

A tiny command-line tool that made every BeOS program remote-controllable from the shell, without the program needing to know.

BeOS had a scripting protocol built in: every window, button and text field was a BLooper or BHandler that could answer questions about its properties via BMessage. The catch was that you could only use it from C++. Attila Mezei wrote hey to turn readable commands into those messages. hey Tracker get Title of Window 0 asks Tracker what its first window is called, and hey StyledEdit set Frame of Window 0 to BRect(0,0,400,300) moves it.

Because the properties lived in the system classes, hey worked against programs whose developers had never given scripting a thought. That gave BeOS its own answer to the Amiga's ARexx or AppleScript, without every application having to implement support. Haiku ships the tool in its base system, where it's still the quickest way to find out what a window is actually made of.

← Back to the lexicon