cleaning it up the stuff I tried to get AppleScript to look nice in github.