Assign a hot key to the computer's sleep function
Version: 1.0If you want to put your Mac to sleep immediately you would normally switch to the Finder and select "Sleep" from the Special Menu.
Operating System: Mac OS X
By assigning this handy AppleScript application to one of the function keys you can accomplish the same task with a single keystroke.
To allow for an accidental function key hit, the script gives you five seconds to cancel or confirm (on later versions of the Mac Operating System) before putting your computer to sleep. This script enables you to hit just one key and walk away.