def CurrentItunes(self, a): if a=="Track": Track=rCMD("osascript -e 'tell application \"iTunes\" to name of current track as string'") Track=self.CS(Track,"track/artist") return Track if a=="Artist": Artist=rCMD("osascript -e 'tell application \"iTunes\" to artist of current track as string'") Artist=self.CS(Artist,"track/artist") return Artist
def Say(self, x): if self.OS=="darwin": rCMD("say %s"%x.replace("'","")) else: print "I cannot support %s"%self.OS
def OpenLyricFile(self): if self.OS=="darwin": x=rCMD("open %s"%(self.LyricFile)) return x else: return self.OS_Error()