iHook accomplishes this through its ability to understand a set of directives. When a script writes an iHook Directive to stdout, iHook will modify its own interface based on the content of the Directive. In this way, a simple shell script can have an Aqua interface, complete with a progress bar and drawer.
When launched in the Finder, iHook prompts the user to choose a script to run; iHook also accepts file drops on its icon, and will attempt to run the dropped file. When no user is logged in -- during a logout, for example -- iHook tries to execute /etc/logout.hook. This makes iHook highly useful as an interface for Mac OS X LogoutHooks.
Subscribe for our newsletter with best Mac offers from MacUpdate.