Esempio n. 1
0
	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
Esempio n. 2
0
	def Say(self, x):
		if self.OS=="darwin":
			rCMD("say %s"%x.replace("'",""))
		else:
			print "I cannot support %s"%self.OS
Esempio n. 3
0
	def OpenLyricFile(self):
		if self.OS=="darwin":
			x=rCMD("open %s"%(self.LyricFile))
			return x
		else:
			return self.OS_Error()