Added design framework. Moved Applescript runs into ScriptRunner