Applescript to toggle F1-F11 keys as function keys - Mac Forums

Very useful. For some games you need the F1-F12 keys to be function keys, but normally I want them to control volume, show Dashboard, etc. Save this script as an application, put it in your Dock, and it will open System Preferences and toggle the checkbox.