Startup item scripts may send feedback to SystemStarter by using the ConsoleMessage utility. ConsoleMessage may be used to display informational messages, and to indicate which services have succeeded or failed.
Startup item scripts may display informational messages to the user during execution. Calling ConsoleMessage with a single argument will result in that string being displayed on the console during startup.
ConsoleMessage "Starting My Startup Item"
SystemStarter will attempt to localize the string using the current item's localization dictionaries. See the Localizing Startup Item Bundles section for information about providing localized messages.
Startup item scripts may use ConsoleMessage to give the status of services they provide. The following two examples mark all services provided by the current item as successful or failed. The same result may be accomplished via returning a successful or unsuccessful exit status from the startup item script.
ConsoleMessage -S
ConsoleMessage -F
The next two examples show how to indicate the success or failure of a specific service. The exit status of the script will not override these settings.
ConsoleMessage -s "MyService"
ConsoleMessage -f "MyService"