Homer


This section quickly explains how to use Homer, the Homer scripts lancher. The Homer executable lives in ~/config/bin/. It can be launched by double-clicking on its icon, typing Homer in a Terminal. Because a link is added in ~/config/add-ons/Tracker, Homer can also be invoked as a Tracked add-on (by pressing ALT + COMMAND + H).

Homer.gif (14330 bytes)

The Homer window is split as follows:

One thing to note is that the scripts directory is monitored (with the BeOS node monitor). This means that scripts which are or added to the watched directory will immediately be taken into account, and scripts which are removed from that directory will be removed from the scripts list. Script entries which are modified are not yet taken into account. I know this would help a lot when fine-tuning a script.

One last thing about Homer. It loads Homer filters and commands at launch time (these are not monitored). The add-ons are found in ~/config/add-ons/Homer/filters and ~/config/add-ons/Homer/commands.

That's it.


Screenshots

Here is a screenshot of Homer and Homer window after a script based on GrepCommand has been launched. The script called "search for regexp" has one argument: the regular expression to search. The matching lines of any input file in displayed in the add-ons messages window.

GrepExample.gif (55685 bytes)

Here is another screenshot for the ReplaceCommand. The script named "replace email" has no parameter and was written to replace the email by my address agautherot@hotmail.com. This is performed only in files whose extension is cpp. The regular expression used to match the email address is

[a-zA-Z_]+@[-.a-zA-Z_]+

As you can see, it took 6.28s to process 231 files. Pretty neat, huh?

ReplaceExample.gif (54651 bytes)

 

All right, enjoy now.


This page was last updated on 12/12/99.