Open AppleScript Editor and paste in the following code:.
Click 'Add', and you should now have a new application password entitled 'SelfControl' in your Keychain.
You'll also need to download and install Daniel Jalkut's Usable Keychain Scripting to quickly and securely access your admin password in order to activate SelfControl.To this end I have an AppleScript scheduled to activate SelfControl every weekday morning while I'm still sleeping, which lasts until mid-day, so I can get stuff done when I wake up, rather than just roll out of bed onto Facebook. I find it helpful to be able to automate this app, so that I don't change my mind and decide to blow off work at the beginning of the day. So, if I wanted to work on a project for 3 hours without checking Twitter or Facebook, I would simply add and to SelfControl's list of blocked sites, set its timer for 3 hours, and get some real work done. Once you turn it on, it's virtually impossible to deactivate until its timer runs out. It is a timed Internet filter that can block sites based on a whitelist or blacklist. This nifty app, for those who don't know, is a great boon to the Internet addict and to easily distractible folks such as myself. As an adult with ADD, I'm a huge fan of Steve Lambert's SelfControl.