--sorry applescript today
set status to "start"
my growlRegister()
try
  set result to do shell script "sudo apachectl " & ¬
    status with administrator privileges
  my growlNotify(status & "ing apache", result)
on error errmsg
  my growlNotify("error", errmsg)
end try
--  end process text
--end using terms from

using terms from application "GrowlHelperApp"
  -- Register Growl
  on growlRegister()
    tell application "GrowlHelperApp"
      register as application ¬
        "GrowlHelperApp" all notifications {"Alert"} ¬
        default notifications {"Alert"} ¬
        icon of application "GrowlHelperApp.app"
    end tell
  end growlRegister
  
  -- Notify using Growl 
  on growlNotify(grrTitle, grrDescription)
    tell application "GrowlHelperApp"
      notify with name "Alert" title grrTitle ¬
        description grrDescription ¬
        application name "GrowlHelperApp"
    end tell
  end growlNotify
end using terms from

--sorry applescript today
set status to "start"
my growlRegister()
try
  set result to do shell script "sudo apachectl " & ¬
    status with administrator privileges
  my growlNotify(status & "ing apache", result)
on error errmsg
  my growlNotify("error", errmsg)
end try
--  end process text
--end using terms from

using terms from application "GrowlHelperApp"
  -- Register Growl
  on growlRegister()
    tell application "GrowlHelperApp"
      register as application ¬
        "GrowlHelperApp" all notifications {"Alert"} ¬
        default notifications {"Alert"} ¬
        icon of application "GrowlHelperApp.app"
    end tell
  end growlRegister
  
  -- Notify using Growl 
  on growlNotify(grrTitle, grrDescription)
    tell application "GrowlHelperApp"
      notify with name "Alert" title grrTitle ¬
        description grrDescription ¬
        application name "GrowlHelperApp"
    end tell
  end growlNotify
end using terms from