01.06.2011 - A login hook tells Mac OS X to execute a certain script when a user logs in. Unlike Startup Items that open when a user logs in, a login hook is a script that #console "/System/Library/CoreServices/loginwindow.app/Contents/ .