Input method auto evaluation, using ruby apple script