Safari BetterTTV emotes support written in AppleScript
User interface scripting relies upon the OS X accessibility frameworks that provide alternative methods of querying and controlling the interfaces of apps and the system. By default, accessibility control of apps is disabled. For security and privacy reasons, the user must manually enable it on an app-by-app (including script apps) basis.
Note : Before run this script you need to allow the Java Script apple events in Safari’s develop menu and have your twitch opened.
To access the Safari Developer Tools, you first need to turn on the Develop menu. Open Safari > Preferences, and click on the Advanced Tab. Then check the box next to "Show Develop in menu bar." Once you exit Preferences, you'll see a new Develop menu appear.
run "twitch_script.app" and allow "control other applications to run". After that you can watch/change channels and it will still work (in this current tab)