Two State button tutorial

What do you mean by two state button? The closest thing I use is AppleScript widgets with two icons based on a script's return value. If that's what you're looking for, check out my post here for the AppleScript: