Ruby methods to convert text files into Applescripts to control Patatap